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

Commit 0842e3ca authored by Jeff Davidson's avatar Jeff Davidson
Browse files

Add FLAG_ACTIVITY_NEW_TASK when prompting about carrier app.

This should never have worked, but appears to on P due to some
compatibility hacks. This context is not an activity context, so any
activities it starts must be in a new task.

Bug: 117248944
Test: See bug comment #9
Change-Id: I9cd8841327f76b3675f2fd3b880e4d71c9089e1c
parent 32fc8a91
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1109,6 +1109,7 @@ public class UiccProfile extends IccCard {

    private void promptInstallCarrierApp(String pkgName) {
        Intent showDialogIntent = InstallCarrierAppTrampolineActivity.get(mContext, pkgName);
        showDialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        mContext.startActivity(showDialogIntent);
    }