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

Commit b6691f19 authored by Li Li's avatar Li Li
Browse files

Fix negative freezer timeout

Bug: 183735766
Test: Manually feed negative timeout and verified it's set to default
Change-Id: I8cbf9d543d2b23720541994857a1fda689313826
parent 16ccba2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ final class ProcessCachedOptimizerRecord {
        return mFreezeExempt;
    }

    @GuardedBy("mPreLock")
    @GuardedBy("mProcLock")
    void setFreezeExempt(boolean exempt) {
        mFreezeExempt = exempt;
    }