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 96f32de847)
Exempt-From-Owner-Approval: cherry-pick
This commit is contained in:
Joshua Duong
2020-04-07 23:49:46 -07:00
parent a31590bb4a
commit fab030b9c0
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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