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

Commit 4e39cf9b authored by Adrian Salido's avatar Adrian Salido Committed by Android (Google) Code Review
Browse files

Merge "Use default refresh rate from config" into qt-dev

parents bead5168 41cc1863
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);
        }