onscreen calculator improvement
This commit is contained in:
@@ -30,6 +30,7 @@ public final class CalculatorPreferences {
|
||||
|
||||
public static class OnscreenCalculator {
|
||||
public static final Preference<Boolean> startOnBoot = new BooleanPreference("onscreen_start_on_boot", false);
|
||||
public static final Preference<Boolean> showAppIcon = new BooleanPreference("onscreen_show_app_icon", true);
|
||||
}
|
||||
|
||||
public static class Calculations {
|
||||
@@ -188,6 +189,9 @@ public final class CalculatorPreferences {
|
||||
applyDefaultPreference(preferences, Calculations.preferredAngleUnits);
|
||||
applyDefaultPreference(preferences, Calculations.preferredNumeralBase);
|
||||
|
||||
applyDefaultPreference(preferences, OnscreenCalculator.showAppIcon);
|
||||
applyDefaultPreference(preferences, OnscreenCalculator.startOnBoot);
|
||||
|
||||
|
||||
// renew value after each application start
|
||||
Calculations.showCalculationMessagesDialog.putDefault(preferences);
|
||||
|
Reference in New Issue
Block a user