diff options
| author | 2019-03-07 08:31:38 +0000 | |
|---|---|---|
| committer | 2019-03-07 08:31:38 +0000 | |
| commit | 75115a25f8e7c3ecfdd6310a700dae770e88ea7a (patch) | |
| tree | 8eb0505acec4ca918ae44f4bd79978b99f404c52 | |
| parent | 7f3675c54f25197b1ad2830d5da02eac3e6c4f3c (diff) | |
| parent | e4cc31240874446b45db4e8a1518e74d73c50b90 (diff) | |
Merge "Exclude Emergency Dialer from recent app list."
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java index 8a95cc4910ad..1f3762debc68 100644 --- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java @@ -493,7 +493,9 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener, public void onPress() { MetricsLogger.action(mContext, MetricsEvent.ACTION_EMERGENCY_DIALER_FROM_POWER_MENU); Intent intent = new Intent(EmergencyDialerConstants.ACTION_DIAL); - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK + | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS + | Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.putExtra(EmergencyDialerConstants.EXTRA_ENTRY_TYPE, EmergencyDialerConstants.ENTRY_TYPE_POWER_MENU); mContext.startActivityAsUser(intent, UserHandle.CURRENT); |