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

Commit 32c9ed00 authored by Sun Changqing's avatar Sun Changqing Committed by Philip P. Moltmann
Browse files

Fix anr when installing package

Test: Backport from AOSP
Fixes: 172829519
Change-Id: I02dba3a8f290c2cd8eb43062156f03302955ed06
parent 655789af
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -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;
            }
            }