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

Commit fab030b9 authored by Joshua Duong's avatar Joshua Duong
Browse files

Hide notification shade when WifiDebuggingActivity is shown.

Wireless debugging can be enabled from a quick settings tile, and this
gets covered by the notification shade.

Bug: 153275926

Test: Enable wifi debugging qstile from Settings > Developer options >
Quick settings developer tiles > Wireless debugging. On notification
shade, enable wireless debugging on an untrusted network. Notification
shade should be hidden to reveal the WifiDebuggingActivity.

Change-Id: I347e23ab85ee1235c20eab9a2318e1d8afe8975a
(cherry picked from commit 96f32de8)
Exempt-From-Owner-Approval: cherry-pick
parent a31590bb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -175,6 +175,9 @@ public class WifiDebuggingActivity extends AlertActivity
        IntentFilter filter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION);
        filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
        registerReceiver(mWifiChangeReceiver, filter);
        // Close quick shade
        sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));

    }

    @Override
+2 −0
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@ public class WifiDebuggingSecondaryUserActivity extends AlertActivity
        IntentFilter filter = new IntentFilter(WifiManager.WIFI_STATE_CHANGED_ACTION);
        filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);
        registerReceiver(mWifiChangeReceiver, filter);
        // Close quick shade
        sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
    }

    @Override