summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorTom O'Neill <tomo@google.com>2014-09-05 08:22:47 -0700
committerTom O'Neill <tomo@google.com>2014-09-05 08:22:47 -0700
commitd528930380e9b0e6ff396d272b6837e24da555b3 (patch)
treee4dd94a605ed1e85ccf1b301f41a74eb054c059f /packages
parentc50e7e847702897b7087bc59cac77c1b78b57f32 (diff)
downloadframeworks_base-d528930380e9b0e6ff396d272b6837e24da555b3.zip
frameworks_base-d528930380e9b0e6ff396d272b6837e24da555b3.tar.gz
frameworks_base-d528930380e9b0e6ff396d272b6837e24da555b3.tar.bz2
Suppress location tile in QS on lock screen
- Work around bug in QS implementation - Bug: 15916487 Change-Id: I623a4e31e8b4187d920c2724182c927328885b3b
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/LocationTile.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/LocationTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/LocationTile.java
index 46d8a9b..d1dc5d2 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/LocationTile.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/LocationTile.java
@@ -60,7 +60,11 @@ public class LocationTile extends QSTile<QSTile.BooleanState> {
@Override
protected void handleUpdateState(BooleanState state, Object arg) {
final boolean locationEnabled = mController.isLocationEnabled();
- state.visible = !(mKeyguard.isSecure() && mKeyguard.isShowing());
+
+ // Work around for bug 15916487: don't show location tile on top of lock screen. After the
+ // bug is fixed, this should be reverted to only hiding it on secure lock screens:
+ // state.visible = !(mKeyguard.isSecure() && mKeyguard.isShowing());
+ state.visible = !mKeyguard.isShowing();
state.value = locationEnabled;
if (locationEnabled) {
state.iconId = R.drawable.ic_qs_location_on;