Do not close QS on security footer dialog

Show the dialog on top of QS. Make sure that QS is dismissed if dialog
launches another activity.

Test: manual
Fixes: 174038860
Change-Id: I86ce7fd1a6c7a411f53c024bc26e71b822911573
This commit is contained in:
Fabian Kozynski
2020-11-30 12:28:12 -05:00
parent 5a4f1eb2e7
commit c63d68d3d4

View File

@@ -140,8 +140,6 @@ class QSSecurityFooter implements OnClickListener, DialogInterface.OnClickListen
}
public void showDeviceMonitoringDialog() {
mHost.collapsePanels();
// TODO: Delay dialog creation until after panels are collapsed.
createDialog();
}
@@ -276,6 +274,7 @@ class QSSecurityFooter implements OnClickListener, DialogInterface.OnClickListen
if (which == DialogInterface.BUTTON_NEGATIVE) {
final Intent intent = new Intent(Settings.ACTION_ENTERPRISE_PRIVACY_SETTINGS);
mDialog.dismiss();
// This dismisses the shade on opening the activity
mActivityStarter.postStartActivityDismissingKeyguard(intent, 0);
}
}
@@ -581,6 +580,7 @@ class QSSecurityFooter implements OnClickListener, DialogInterface.OnClickListen
public void onClick(View widget) {
final Intent intent = new Intent(Settings.ACTION_VPN_SETTINGS);
mDialog.dismiss();
// This dismisses the shade on opening the activity
mActivityStarter.postStartActivityDismissingKeyguard(intent, 0);
}