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

Commit 832d351c authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "QS: Don't collapse the panel when turning location on." into lmp-dev

parents b7124583 d21df607
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