prevent screen from fading

This commit is contained in:
Sergey Solovyev
2013-06-25 17:24:49 +04:00
parent 2fb20dc2b5
commit e1b0679263
4 changed files with 21 additions and 0 deletions

View File

@@ -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);