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

Commit 79357375 authored by LuK1337's avatar LuK1337
Browse files

SystemUI: CellularTile: Don't call showDetail() when device is locked

* We recently enabled dualTarget for CellularTile which allowed us
  to toggle mobile data without unlocking device. Moving showDetail
  call to postQSRunnableDismissingKeyguard when the device is locked
  fixes this issue.

Change-Id: I16dc766166a33a309a2fc945e81fa15b5d194196
parent 7fb32a0b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -142,6 +142,12 @@ public class CellularTile extends QSTileImpl<SignalState> {
    @Override
    protected void handleSecondaryClick() {
        if (mDataController.isMobileDataSupported()) {
            if (mKeyguardMonitor.isSecure() && !mKeyguardMonitor.canSkipBouncer()) {
                mActivityStarter.postQSRunnableDismissingKeyguard(() -> {
                    showDetail(true);
                });
                return;
            }
            showDetail(true);
        } else {
            mActivityStarter