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

Commit c7679b0e authored by Christopher Tate's avatar Christopher Tate Committed by Android (Google) Code Review
Browse files

Merge "Don't crash when procstats has data for a now-disused uid" into klp-dev

parents 6a5c9a83 a218e732
Loading
Loading
Loading
Loading
+22 −17
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ public class ProcessStatsUi extends PreferenceFragment {
            }
            if (targetApp == null) {
                String[] packages = pm.getPackagesForUid(proc.mUid);
                if (packages != null) {
                    for (String curPkg : packages) {
                        try {
                            final PackageInfo pi = pm.getPackageInfo(curPkg,
@@ -356,6 +357,10 @@ public class ProcessStatsUi extends PreferenceFragment {
                        } catch (PackageManager.NameNotFoundException e) {
                        }
                    }
                } else {
                    // no current packages for this uid, typically because of uninstall
                    Log.i(TAG, "No package for uid " + proc.mUid);
                }
            }
            pref.setTitle(label);
            if (targetApp != null) {