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

Commit 3b413e36 authored by Joanne Chung's avatar Joanne Chung Committed by Android (Google) Code Review
Browse files

Merge "Fix the result may break forwarding to the next PIA" into main

parents 5cc308a2 6da1cbfc
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);