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

Commit b6e1ec19 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 037cd341: Merge "Fix issue #2676378: Activity Manager Crash on FRF40" into froyo

Merge commit '037cd341' into froyo-plus-aosp

* commit '037cd341':
  Fix issue #2676378: Activity Manager Crash on FRF40
parents 84a30dbf 037cd341
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -7858,18 +7858,18 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
                        r.conProviders.put(cpr, new Integer(cnt.intValue()+1));
                    }
                    cpr.clients.add(r);
                } else {
                    cpr.externals++;
                }
                if (cpr.app != null) {
                    if (r.setAdj >= VISIBLE_APP_ADJ) {
                    if (cpr.app != null && r.setAdj >= VISIBLE_APP_ADJ) {
                        // If this is a visible app accessing the provider,
                        // make sure to count it as being accessed and thus
                        // back up on the LRU list.  This is good because
                        // content providers are often expensive to start.
                        updateLruProcessLocked(cpr.app, false, true);
                    }
                } else {
                    cpr.externals++;
                }
                if (cpr.app != null) {
                    updateOomAdjLocked(cpr.app);
                }