Fix negative freezer timeout
Bug: 183735766 Test: Manually feed negative timeout and verified it's set to default Change-Id: I8cbf9d543d2b23720541994857a1fda689313826
This commit is contained in:
@@ -838,7 +838,7 @@ public final class CachedAppOptimizer {
|
||||
KEY_FREEZER_DEBOUNCE_TIMEOUT, DEFAULT_FREEZER_DEBOUNCE_TIMEOUT);
|
||||
|
||||
if (mFreezerDebounceTimeout < 0) {
|
||||
mFullDeltaRssThrottleKb = DEFAULT_FREEZER_DEBOUNCE_TIMEOUT;
|
||||
mFreezerDebounceTimeout = DEFAULT_FREEZER_DEBOUNCE_TIMEOUT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ final class ProcessCachedOptimizerRecord {
|
||||
return mFreezeExempt;
|
||||
}
|
||||
|
||||
@GuardedBy("mPreLock")
|
||||
@GuardedBy("mProcLock")
|
||||
void setFreezeExempt(boolean exempt) {
|
||||
mFreezeExempt = exempt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user