Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5289303 authored by Tom O'Neill's avatar Tom O'Neill
Browse files

Suppress location tile in QS on lock screen

- Work around bug in QS implementation

- Bug: 15916487

Change-Id: I623a4e31e8b4187d920c2724182c927328885b3b
parent c50e7e84
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;