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

Commit 7e36900e authored by Adrian Salido's avatar Adrian Salido Committed by android-build-merger
Browse files

Merge "Use default refresh rate from config" into qt-dev am: 4e39cf9b

am: cf99104e

Change-Id: I2a368bce98cd981a00be9876e6da8ccf89834c42
parents 4ece9f81 cf99104e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -54,9 +54,6 @@ public class DisplayModeDirector {
    // specific display.
    private static final int GLOBAL_ID = -1;

    // What we consider to be the system's "default" refresh rate.
    private static final float DEFAULT_REFRESH_RATE = 60f;

    // The tolerance within which we consider something approximately equals.
    private static final float EPSILON = 0.001f;

@@ -536,7 +533,7 @@ public class DisplayModeDirector {

        private void updateRefreshRateSettingLocked() {
            float peakRefreshRate = Settings.System.getFloat(mContext.getContentResolver(),
                    Settings.System.PEAK_REFRESH_RATE, DEFAULT_REFRESH_RATE);
                    Settings.System.PEAK_REFRESH_RATE, mDefaultPeakRefreshRate);
            Vote vote = Vote.forRefreshRates(0f, peakRefreshRate);
            updateVoteLocked(Vote.PRIORITY_USER_SETTING, vote);
        }