-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Enable xml preview in Android Studio. #1572
Conversation
Xigong93
commented
Jun 1, 2020
@@ -318,7 +317,7 @@ protected void onVisibilityChanged(@NonNull View changedView, int visibility) { | |||
|
|||
@Override protected void onAttachedToWindow() { | |||
super.onAttachedToWindow(); | |||
if (autoPlay || wasAnimatingWhenDetached) { | |||
if (!isInEditMode() && autoPlay || wasAnimatingWhenDetached) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is right. You want parens around the two ORs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot. I had fix this. Please review again.
This feature is awesome, thank you for this PR. |