-
Notifications
You must be signed in to change notification settings - Fork 6k
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
show_buffering IntDef values are wrongly updated in a commit. #5139
Comments
Not sure this makes it wrong. The idea of IntDefs is to use constants instead of number literals when working with these states. So changing the numbers shouldn't make a difference. Can you explain why this is a problem for your code? |
@tonihei Actually, the real issue is when you set this from xml layout with these enum: link to attrs.xml, it will be recognized here: link to PlayerView.java. So setting "when_playing" in xml will result in the value to be 2, and in PlayerView.java, it will be compared to "ALWAYS" so this is the wrong behaviour: link to usage |
Ah, thanks for explaining. We'll fix that. |
The corresponding IntDef has changed without updating the attribute values. Issue:#5139 PiperOrigin-RevId: 222598044
The corresponding IntDef has changed without updating the attribute values. Issue:#5139 PiperOrigin-RevId: 222598044
Long story short, I think this commit has made the IntDef wrong ...
check this
Screenshot below:
The text was updated successfully, but these errors were encountered: