summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-11-05 18:55:11 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-11-05 18:55:11 +0000
commit387cf5e1275e95ed520b33a5f429ff466d294471 (patch)
tree5a08d600a7ff6275b32ad4ae85d1cfe900e20251
parent5db706a48f8fbd1e5efbaca3d632dbb90b9a563b (diff)
parent732288561e4a2e8700e9b19e7920aa49d1483233 (diff)
Merge "Fix anr when installing package"
-rwxr-xr-xpackages/PackageInstaller/src/com/android/packageinstaller/InstallInstalling.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/InstallInstalling.java b/packages/PackageInstaller/src/com/android/packageinstaller/InstallInstalling.java
index 4f85eea13dca..bbc33c37f29a 100755
--- a/packages/PackageInstaller/src/com/android/packageinstaller/InstallInstalling.java
+++ b/packages/PackageInstaller/src/com/android/packageinstaller/InstallInstalling.java
@@ -339,6 +339,10 @@ public class InstallInstalling extends AlertActivity {
try {
session = getPackageManager().getPackageInstaller().openSession(mSessionId);
} catch (IOException e) {
+ synchronized (this) {
+ isDone = true;
+ notifyAll();
+ }
return null;
}