Merge "Fix anr when installing package"

This commit is contained in:
Treehugger Robot
2020-11-05 18:55:11 +00:00
committed by Gerrit Code Review

View File

@@ -339,6 +339,10 @@ public class InstallInstalling extends AlertActivity {
try { try {
session = getPackageManager().getPackageInstaller().openSession(mSessionId); session = getPackageManager().getPackageInstaller().openSession(mSessionId);
} catch (IOException e) { } catch (IOException e) {
synchronized (this) {
isDone = true;
notifyAll();
}
return null; return null;
} }