Merge "Don't update the standby bucket for apps that were just restored." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e78c205dc8
@@ -975,13 +975,17 @@ public class AppStandbyController
|
|||||||
+ standbyBucketToString(newBucket));
|
+ standbyBucketToString(newBucket));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newBucket = getBucketForLocked(packageName, userId,
|
// Don't update the standby state for apps that were restored
|
||||||
elapsedRealtime);
|
if (!(oldMainReason == REASON_MAIN_DEFAULT
|
||||||
if (DEBUG) {
|
&& (app.bucketingReason & REASON_SUB_MASK)
|
||||||
Slog.d(TAG, "Evaluated AOSP newBucket = "
|
== REASON_SUB_DEFAULT_APP_RESTORED)) {
|
||||||
+ standbyBucketToString(newBucket));
|
newBucket = getBucketForLocked(packageName, userId, elapsedRealtime);
|
||||||
|
if (DEBUG) {
|
||||||
|
Slog.d(TAG, "Evaluated AOSP newBucket = "
|
||||||
|
+ standbyBucketToString(newBucket));
|
||||||
|
}
|
||||||
|
reason = REASON_MAIN_TIMEOUT;
|
||||||
}
|
}
|
||||||
reason = REASON_MAIN_TIMEOUT;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user