From e4cc31240874446b45db4e8a1518e74d73c50b90 Mon Sep 17 00:00:00 2001 From: Leo Hsu Date: Wed, 6 Mar 2019 15:25:28 +0800 Subject: Exclude Emergency Dialer from recent app list. Emergency Dialer should not show up in recent app list. Bug: 127585929 Test: Long press power key, tap Emergency, quit Emergency Dialer, and check recent app list. Change-Id: I2fe917d16ab23de6e82f9cad7b064e2837ec6490 --- .../src/com/android/systemui/globalactions/GlobalActionsDialog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-59-g8ed1b