From e2302ce2aea9e72e609be9b0d36dcf5a372ce5c0 Mon Sep 17 00:00:00 2001 From: zaidkhan0997 Date: Sat, 10 Aug 2024 16:35:48 +0530 Subject: [PATCH] sm8350-common:parts: Adapt PerApp RefreshRate for lisa Anhh Shit we dont have 120hz Signed-off-by: zaidkhan0997 --- parts/res/drawable/{ic_refresh_120.xml => ic_refresh_90.xml} | 0 parts/res/values/strings.xml | 2 +- .../settings/refreshrate/RefreshSettingsFragment.java | 2 +- .../src/org/lineageos/settings/refreshrate/RefreshUtils.java | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename parts/res/drawable/{ic_refresh_120.xml => ic_refresh_90.xml} (100%) diff --git a/parts/res/drawable/ic_refresh_120.xml b/parts/res/drawable/ic_refresh_90.xml similarity index 100% rename from parts/res/drawable/ic_refresh_120.xml rename to parts/res/drawable/ic_refresh_90.xml diff --git a/parts/res/values/strings.xml b/parts/res/values/strings.xml index 56a1844..3a431e8 100644 --- a/parts/res/values/strings.xml +++ b/parts/res/values/strings.xml @@ -32,7 +32,7 @@ Set the maximum refresh rate for a specific application Default 60Hz - 120Hz + 90Hz Low brightness diff --git a/parts/src/org/lineageos/settings/refreshrate/RefreshSettingsFragment.java b/parts/src/org/lineageos/settings/refreshrate/RefreshSettingsFragment.java index 04a4063..a65e0f3 100644 --- a/parts/src/org/lineageos/settings/refreshrate/RefreshSettingsFragment.java +++ b/parts/src/org/lineageos/settings/refreshrate/RefreshSettingsFragment.java @@ -197,7 +197,7 @@ public class RefreshSettingsFragment extends PreferenceFragment case RefreshUtils.STATE_STANDARD: return R.drawable.ic_refresh_60; case RefreshUtils.STATE_EXTREME: - return R.drawable.ic_refresh_120; + return R.drawable.ic_refresh_90; case RefreshUtils.STATE_DEFAULT: default: return R.drawable.ic_refresh_default; diff --git a/parts/src/org/lineageos/settings/refreshrate/RefreshUtils.java b/parts/src/org/lineageos/settings/refreshrate/RefreshUtils.java index d5b7acf..52dd7bb 100644 --- a/parts/src/org/lineageos/settings/refreshrate/RefreshUtils.java +++ b/parts/src/org/lineageos/settings/refreshrate/RefreshUtils.java @@ -40,9 +40,9 @@ public final class RefreshUtils { protected static final int STATE_STANDARD = 1; protected static final int STATE_EXTREME = 2; - private static final float REFRESH_STATE_DEFAULT = 120f; + private static final float REFRESH_STATE_DEFAULT = 90f; private static final float REFRESH_STATE_STANDARD = 60f; - private static final float REFRESH_STATE_EXTREME = 120f; + private static final float REFRESH_STATE_EXTREME = 90f; private static final String REFRESH_STANDARD = "refresh.standard="; private static final String REFRESH_EXTREME = "refresh.extreme=";