-
Notifications
You must be signed in to change notification settings - Fork 105
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
RefreshActionItem contains a switch statement with Resource id's #2
Comments
How come this works fine with v21 of the SDK tools? Maybe this was a v14 change which got reverted? |
Well it works because the switch statement will receive an int anyway, but I use the latest SDK tools myself and the error comes from android lint. If PS. Great little library btw. Found it very usefull On Wed, Apr 17, 2013 at 6:02 PM, ManuelPeinado [email protected]:
|
Really glad you find it useful, thanks! Regarding this issue, I can't seem to get lint to complain about it. I'm using the lastest version of the tools (21.1). |
Park the issue for the moment, I'll investigate further and try to create a On Wed, Apr 17, 2013 at 9:06 PM, ManuelPeinado [email protected]:
|
Ok. Thanks a lot for helping out. On Thu, Apr 18, 2013 at 11:16 AM, Jeroen Tietema
|
Hi Manuel Peinado, In my IDE :Android Studio 1.2.2 ,I have problem same as jtietema, I found this tips : Resource IDs cannot be used in a switch statement in Android library modules so I use ''if else'' instead of "switch case" Oh ha ha, I am not good at English. Please don't laugh at me . |
As of SDK tools r14 library resource id's are not final and thus should not be used in switch statements.
More on this can be read in the SDK changelog http://tools.android.com/recent/buildchangesinrevision14
The text was updated successfully, but these errors were encountered: