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

Commit cf99104e 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

Change-Id: I6bb3de49c1c0c41ffc8b0011bf972675ad164432
parents 7e8a28c1 4e39cf9b
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);
        }