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

Commit 6da1cbfc authored by Joanne Chung's avatar Joanne Chung
Browse files

Fix the result may break forwarding to the next PIA

Bug: 202942446
Test: atest CtsPackageInstallTestCases
Test: manual issue flow
Change-Id: Ie31847b679ca34e862b182065a51369431449315
parent 3a651337
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -806,12 +806,12 @@ public class PackageInstallerActivity extends AlertActivity {
            }
            new Handler(Looper.getMainLooper()).postDelayed(() -> {
                if (!isDestroyed()) {
                    startActivity(getIntent());
                    // The start flag (FLAG_ACTIVITY_CLEAR_TOP | FLAG_ACTIVITY_SINGLE_TOP) doesn't
                    // work for the multiple user case, i.e. the caller task user and started
                    // Activity user are not the same. To avoid having multiple PIAs in the task,
                    // finish the current PackageInstallerActivity
                    finish();
                    startActivity(getIntent());
                }
            }, 500);