Loading packages/SystemUI/src/com/android/systemui/qs/tiles/FlashlightTile.java +2 −0 Original line number Diff line number Diff line Loading @@ -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); Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java +4 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,10 @@ public class FlashlightController { } } public synchronized boolean isEnabled() { return mFlashlightEnabled; } public synchronized boolean isAvailable() { return mTorchAvailable; } Loading Loading
packages/SystemUI/src/com/android/systemui/qs/tiles/FlashlightTile.java +2 −0 Original line number Diff line number Diff line Loading @@ -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); Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java +4 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,10 @@ public class FlashlightController { } } public synchronized boolean isEnabled() { return mFlashlightEnabled; } public synchronized boolean isAvailable() { return mTorchAvailable; } Loading