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

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

am abcd7245: am 5229149d: am 88d616c8: am bbb17765: am 55dbf2d7: Merge "QS:...

am abcd7245: am 5229149d: am 88d616c8: am bbb17765: am 55dbf2d7: Merge "QS: Allow Flashlight Tile to handle reset state" into mnc-dev

* commit 'abcd7245':
  QS: Allow Flashlight Tile to handle reset state
parents 3bed4229 abcd7245
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ public class FlashlightTile extends QSTile<QSTile.BooleanState> implements
                return;
            }
            state.value = value;
        } else {
            state.value = mFlashlightController.isEnabled();
        }
        final AnimationIcon icon = state.value ? mEnable : mDisable;
        icon.setAllowAnimation(arg instanceof UserBoolean && ((UserBoolean) arg).userInitiated);
+4 −0
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ public class FlashlightController {
        }
    }

    public synchronized boolean isEnabled() {
        return mFlashlightEnabled;
    }

    public synchronized boolean isAvailable() {
        return mTorchAvailable;
    }