sm8350-common:parts: Adapt PerApp RefreshRate for lisa
Anhh Shit we dont have 120hz Signed-off-by: zaidkhan0997 <kzaid0997@gmail.com>
This commit is contained in:
parent
5c82902d09
commit
ae7cfcfe8a
@ -32,7 +32,7 @@
|
|||||||
<string name="refresh_summary">Set the maximum refresh rate for a specific application</string>
|
<string name="refresh_summary">Set the maximum refresh rate for a specific application</string>
|
||||||
<string name="refresh_default">Default</string>
|
<string name="refresh_default">Default</string>
|
||||||
<string name="refresh_standard">60Hz</string>
|
<string name="refresh_standard">60Hz</string>
|
||||||
<string name="refresh_extreme">120Hz</string>
|
<string name="refresh_extreme">90Hz</string>
|
||||||
|
|
||||||
<!-- Doze Strings -->
|
<!-- Doze Strings -->
|
||||||
<string name="doze_brightness_low">Low brightness</string>
|
<string name="doze_brightness_low">Low brightness</string>
|
||||||
|
@ -197,7 +197,7 @@ public class RefreshSettingsFragment extends PreferenceFragment
|
|||||||
case RefreshUtils.STATE_STANDARD:
|
case RefreshUtils.STATE_STANDARD:
|
||||||
return R.drawable.ic_refresh_60;
|
return R.drawable.ic_refresh_60;
|
||||||
case RefreshUtils.STATE_EXTREME:
|
case RefreshUtils.STATE_EXTREME:
|
||||||
return R.drawable.ic_refresh_120;
|
return R.drawable.ic_refresh_90;
|
||||||
case RefreshUtils.STATE_DEFAULT:
|
case RefreshUtils.STATE_DEFAULT:
|
||||||
default:
|
default:
|
||||||
return R.drawable.ic_refresh_default;
|
return R.drawable.ic_refresh_default;
|
||||||
|
@ -40,9 +40,9 @@ public final class RefreshUtils {
|
|||||||
protected static final int STATE_STANDARD = 1;
|
protected static final int STATE_STANDARD = 1;
|
||||||
protected static final int STATE_EXTREME = 2;
|
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_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_STANDARD = "refresh.standard=";
|
||||||
private static final String REFRESH_EXTREME = "refresh.extreme=";
|
private static final String REFRESH_EXTREME = "refresh.extreme=";
|
||||||
|
Loading…
Reference in New Issue
Block a user