summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Joanne Chung <joannechung@google.com> 2023-08-08 00:55:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-08-08 00:55:23 +0000
commit3b413e362b05337825cc13becb5a0eb4cf64228c (patch)
tree89b2ad99ac3bced53be2436d3a57c9531e641b46
parent5cc308a23620a607d2ad386149e69947b323bac7 (diff)
parent6da1cbfcfd20279d8a639954fa17c22f9ba990e8 (diff)
Merge "Fix the result may break forwarding to the next PIA" into main
-rw-r--r--packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java b/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java
index 2d6cc699fc11..df91d98b8360 100644
--- a/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/packages/PackageInstaller/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -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);