prevent screen from fading
This commit is contained in:
@@ -20,4 +20,7 @@
|
||||
<string name="p_calculations_calculate_on_fly_summary">If turned on calculations are done automatically while typing
|
||||
expression
|
||||
</string>
|
||||
|
||||
<string name="prefs_prevent_screen_from_fading_title">Prevent screen from fading</string>
|
||||
<string name="prefs_prevent_screen_from_fading_summary">If turned on screen will not fade while using the app</string>
|
||||
</resources>
|
@@ -59,6 +59,7 @@ public final class CalculatorPreferences {
|
||||
public static final Preference<Boolean> showEqualsButton = BooleanPreference.of("showEqualsButton", true);
|
||||
public static final Preference<Boolean> autoOrientation = BooleanPreference.of("autoOrientation", true);
|
||||
public static final Preference<Boolean> hideNumeralBaseDigits = BooleanPreference.of("hideNumeralBaseDigits", true);
|
||||
public static final Preference<Boolean> preventScreenFromFading = BooleanPreference.of("preventScreenFromFading", true);
|
||||
|
||||
@Nonnull
|
||||
public static Theme getTheme(@Nonnull SharedPreferences preferences) {
|
||||
@@ -196,6 +197,7 @@ public final class CalculatorPreferences {
|
||||
applyDefaultPreference(preferences, Gui.showEqualsButton);
|
||||
applyDefaultPreference(preferences, Gui.autoOrientation);
|
||||
applyDefaultPreference(preferences, Gui.hideNumeralBaseDigits);
|
||||
applyDefaultPreference(preferences, Gui.preventScreenFromFading);
|
||||
|
||||
applyDefaultPreference(preferences, Graph.plotImag);
|
||||
applyDefaultPreference(preferences, History.showIntermediateCalculations);
|
||||
|
Reference in New Issue
Block a user