Merge "Avoid OOM Adj update for processes with fixed adj." into udc-dev
This commit is contained in:
@@ -837,7 +837,7 @@ public class OomAdjuster {
|
|||||||
*/
|
*/
|
||||||
@GuardedBy("mService")
|
@GuardedBy("mService")
|
||||||
void enqueueOomAdjTargetLocked(ProcessRecord app) {
|
void enqueueOomAdjTargetLocked(ProcessRecord app) {
|
||||||
if (app != null) {
|
if (app != null && app.mState.getMaxAdj() > FOREGROUND_APP_ADJ) {
|
||||||
mPendingProcessSet.add(app);
|
mPendingProcessSet.add(app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user