Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da1dacaf authored by Songchun Fan's avatar Songchun Fan
Browse files

[SettingsProvider] fix font size scale validator

BUG: 156260178
Test: builds
Change-Id: I32f3b7ece78ec8cc97c52a0484151a6a777aa9da
Merged-In: I32f3b7ece78ec8cc97c52a0484151a6a777aa9da
parent b467f223
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -3417,16 +3417,8 @@ public final class Settings {
         */
        public static final String FONT_SCALE = "font_scale";
        private static final Validator FONT_SCALE_VALIDATOR = new Validator() {
            @Override
            public boolean validate(@Nullable String value) {
                try {
                    return Float.parseFloat(value) >= 0;
                } catch (NumberFormatException | NullPointerException e) {
                    return false;
                }
            }
        };
        private static final Validator FONT_SCALE_VALIDATOR =
                new SettingsValidators.InclusiveFloatRangeValidator(0.85f, 1.3f);
        /**
         * The serialized system locale value.