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

Commit e1ffe05c authored by Jason Monk's avatar Jason Monk Committed by Android Git Automerger
Browse files

am ed9d3494: Merge "Fix Flashlight tile animation" into mnc-dev

* commit 'ed9d3494':
  Fix Flashlight tile animation
parents 0c92974e ed9d3494
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -74,7 +74,11 @@ public class FlashlightTile extends QSTile<QSTile.BooleanState> implements
        state.visible = mFlashlightController.isAvailable();
        state.label = mHost.getContext().getString(R.string.quick_settings_flashlight_label);
        if (arg instanceof UserBoolean) {
            state.value = ((UserBoolean) arg).value;
            boolean value = ((UserBoolean) arg).value;
            if (value == state.value) {
                return;
            }
            state.value = value;
        }
        final AnimationIcon icon = state.value ? mEnable : mDisable;
        icon.setAllowAnimation(arg instanceof UserBoolean && ((UserBoolean) arg).userInitiated);