Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f722d84 authored by Leo Hsu's avatar Leo Hsu Committed by Rashed Abdel-Tawab
Browse files

Exclude Emergency Dialer from recent app list.

Emergency Dialer should not show up in recent app list.

Bug: 112168722
Bug: 127585929
Test: Long press power key, tap Emergency, quit Emergency Dialer, and
check recent app list.
Change-Id: I2fe917d16ab23de6e82f9cad7b064e2837ec6490
Merged-In: I2fe917d16ab23de6e82f9cad7b064e2837ec6490
parent e37ed3c5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -523,7 +523,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);