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

Commit f110127a authored by Daniel Nishi's avatar Daniel Nishi Committed by android-build-merger
Browse files

Merge "Don't crash in background after app uninstall." into oc-dev

am: 74037d12

Change-Id: I261336a0d6b729dfba31a812cfa106ffc01f9931
parents a29ecc1a 74037d12
Loading
Loading
Loading
Loading
+19 −10
Original line number Diff line number Diff line
@@ -984,6 +984,7 @@ public class ApplicationsState {
                                    mCurComputingSizeUserId = UserHandle.getUserId(entry.info.uid);

                                    mBackgroundHandler.post(() -> {
                                        try {
                                            final StorageStats stats = mStats.queryStatsForPackage(
                                                    mCurComputingSizeUuid, mCurComputingSizePkg,
                                                    UserHandle.of(mCurComputingSizeUserId));
@@ -996,6 +997,14 @@ public class ApplicationsState {
                                                mStatsObserver.onGetStatsCompleted(legacyStats, true);
                                            } catch (RemoteException ignored) {
                                            }
                                        } catch (IllegalStateException e) {
                                            Log.e(TAG,"An exception occurred while fetching app size", e);
                                            try {
                                                mStatsObserver.onGetStatsCompleted(null, false);
                                            } catch (RemoteException ignored) {
                                            }
                                        }

                                    });
                                }
                                if (DEBUG_LOCKING) Log.v(TAG, "MSG_LOAD_SIZES releasing: now computing");