commit | 861e09ade26afbeef3bee746ce1d53e0ec82a50e | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Wed Jan 11 09:41:05 2017 -0500 |
committer | Jason Monk <jmonk@google.com> | Wed Jan 11 09:41:05 2017 -0500 |
tree | 65cc035d8f3f7e4f16f14072fa935fdf8fd84bb1 | |
parent | fabf8e8187367a1ff9f2cbcc0a986b1e4b5242dc [diff] [blame] |
Fixes for FlashlightTile lifecycle Change-Id: I690440465ef5312d77a279e73eaa22ccbdfbcd53 Fixes: 33861261 Test: runtest systemui
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightControllerImpl.java index 008d837..f0cfa2c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightControllerImpl.java
@@ -121,6 +121,8 @@ } cleanUpListenersLocked(l); mListeners.add(new WeakReference<>(l)); + l.onFlashlightAvailabilityChanged(mTorchAvailable); + l.onFlashlightChanged(mFlashlightEnabled); } }