diff options
author | Jason Monk <jmonk@google.com> | 2015-08-04 13:43:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-04 13:43:21 +0000 |
commit | 55dbf2d78e575b6c7b53e06aed17ff7406305a13 (patch) | |
tree | 32d70d0f9cba4ccb2564babf4a9e8ae8bf17547a /packages/SystemUI/src/com/android/systemui/statusbar | |
parent | 29b8c4ab8ac4942e46a9ad4ced795bf06b9f8481 (diff) | |
parent | 3266f6123056bf74490186e42f850b30026a5cb9 (diff) | |
download | frameworks_base-55dbf2d78e575b6c7b53e06aed17ff7406305a13.zip frameworks_base-55dbf2d78e575b6c7b53e06aed17ff7406305a13.tar.gz frameworks_base-55dbf2d78e575b6c7b53e06aed17ff7406305a13.tar.bz2 |
Merge "QS: Allow Flashlight Tile to handle reset state" into mnc-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java index cd1914c..29a8f67 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/FlashlightController.java @@ -93,6 +93,10 @@ public class FlashlightController { } } + public synchronized boolean isEnabled() { + return mFlashlightEnabled; + } + public synchronized boolean isAvailable() { return mTorchAvailable; } |