Merge "Don't change bucketing reason if app is already in better bucket." into tm-dev am: 7950f77ee3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18496890 Change-Id: Iaf3883d614e29e1a5c63b809c9cd19b5e721b610 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -328,11 +328,13 @@ public class AppIdleHistory {
|
|||||||
appUsageHistory.lastUsedScreenTime = getScreenOnTime(nowElapsedRealtimeMs);
|
appUsageHistory.lastUsedScreenTime = getScreenOnTime(nowElapsedRealtimeMs);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (appUsageHistory.currentBucket > newBucket) {
|
if (appUsageHistory.currentBucket >= newBucket) {
|
||||||
appUsageHistory.currentBucket = newBucket;
|
if (appUsageHistory.currentBucket > newBucket) {
|
||||||
logAppStandbyBucketChanged(packageName, userId, newBucket, bucketingReason);
|
appUsageHistory.currentBucket = newBucket;
|
||||||
|
logAppStandbyBucketChanged(packageName, userId, newBucket, bucketingReason);
|
||||||
|
}
|
||||||
|
appUsageHistory.bucketingReason = bucketingReason;
|
||||||
}
|
}
|
||||||
appUsageHistory.bucketingReason = bucketingReason;
|
|
||||||
|
|
||||||
return appUsageHistory;
|
return appUsageHistory;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user