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

Commit 75115a25 authored by Leo Hsu's avatar Leo Hsu Committed by Android (Google) Code Review
Browse files

Merge "Exclude Emergency Dialer from recent app list."

parents 7f3675c5 e4cc3124
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);