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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user