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

Commit 2a3920e4 authored by Fan Zhang's avatar Fan Zhang
Browse files

Use NEW_TASK|CLEAR_TOP when launching emergency app

This flag combination will attempt to go to the existing emergency app
task stack instead of creating duplicate ones.

Fix: 193108390
Test: manual
Change-Id: Ia9c9ead4e8b1d27582cdaff3e4d42c762e80709a
parent f05653b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ public class MoreSettingsPreferenceController extends BasePreferenceController i
                .logClickedPreference(mPreference, getMetricsCategory());
        final Intent intent = new Intent(mIntent)
                .addCategory(Intent.CATEGORY_LAUNCHER)
                .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
        Bundle bundle = new Bundle();
        bundle.putString(EXTRA_KEY_ATTRIBUTION, mContext.getPackageName());
        mContext.startActivity(intent, bundle);