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

Enable xml preview in Android Studio. #1572

Merged
merged 4 commits into from
Aug 28, 2020

Conversation

Xigong93
Copy link
Contributor

@Xigong93 Xigong93 commented Jun 1, 2020

image

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@@ -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) {
Copy link
Collaborator

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

Copy link
Contributor Author

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.

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal merged commit 7297d96 into airbnb:master Aug 28, 2020
@IgorCordasEndava
Copy link

This feature is awesome, thank you for this PR.
We have been in need for this for like 2 years, most of our lottie views had tools:src with first frame as png and now we don't have to do this anymore. Developing this further (set preview frame, maybe even animate) would definitely be even more useful.

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

Successfully merging this pull request may close these issues.

4 participants