summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-08-04 13:43:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-04 13:43:21 +0000
commit55dbf2d78e575b6c7b53e06aed17ff7406305a13 (patch)
tree32d70d0f9cba4ccb2564babf4a9e8ae8bf17547a /packages/SystemUI/src/com/android/systemui/statusbar
parent29b8c4ab8ac4942e46a9ad4ced795bf06b9f8481 (diff)
parent3266f6123056bf74490186e42f850b30026a5cb9 (diff)
downloadframeworks_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.java4
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;
}