Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setIconSizeFraction() float to double conversion error #45

Closed
samnockels opened this issue Jul 25, 2016 · 1 comment
Closed

setIconSizeFraction() float to double conversion error #45

samnockels opened this issue Jul 25, 2016 · 1 comment
Labels

Comments

@samnockels
Copy link

samnockels commented Jul 25, 2016

When I try to set the following:

navigationTabBar.setIconSizeFraction(0.5);

I get the error:

Error:(115, 46) error: incompatible types: possible lossy conversion from double to float

Why is this? I have just updated my gradle to use version 1.2.4

@GIGAMOLE
Copy link
Member

Hello. Thanks for question. As always 0.5 was float, but now you must concretize value with F flag such like this:
navigationTabBar.setIconSizeFraction(0.5F);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants