Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 732243fc authored by Candice Lo's avatar Candice Lo Committed by Android (Google) Code Review
Browse files

Merge "Create `isAnimatable` to expose if the current illustration is an animation" into main

parents eaaf7dfa f3ee614f
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -447,6 +447,10 @@ public class IllustrationPreference extends Preference implements GroupSectionDi
        illustrationView.setMaxWidth((int) (restrictedMaxHeight * aspectRatio));
        illustrationView.setMaxWidth((int) (restrictedMaxHeight * aspectRatio));
    }
    }


    public boolean isAnimatable() {
        return mIsAnimatable;
    }

    private void startAnimation(Drawable drawable) {
    private void startAnimation(Drawable drawable) {
        if (!(drawable instanceof Animatable)) {
        if (!(drawable instanceof Animatable)) {
            return;
            return;