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

Commit d21df607 authored by John Spurlock's avatar John Spurlock
Browse files

QS: Don't collapse the panel when turning location on.

Bug:17127158
Change-Id: Ide92c2bd134a84dea796a62710a9016a679b0b74
parent 86469f59
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -54,12 +54,7 @@ public class LocationTile extends QSTile<QSTile.BooleanState> {
    @Override
    protected void handleClick() {
        final boolean wasEnabled = (Boolean) mState.value;
        final boolean changed = mController.setLocationEnabled(!wasEnabled);
        if (!wasEnabled && changed) {
            // If we've successfully switched from location off to on, close the
            // notifications tray to show the network location provider consent dialog.
            mHost.collapsePanels();
        }
        mController.setLocationEnabled(!wasEnabled);
    }

    @Override