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

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

[SettingsProvider] fix font size scale validator

BUG: 156260178
Test: builds
Change-Id: I32f3b7ece78ec8cc97c52a0484151a6a777aa9da
parent 28829eb1
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -89,15 +89,7 @@ public class SystemSettingsValidators {
                        return value == null || value.length() < MAX_LENGTH;
                    }
                });
        VALIDATORS.put(
                System.FONT_SCALE,
                value -> {
                    try {
                        return Float.parseFloat(value) >= 0;
                    } catch (NumberFormatException | NullPointerException e) {
                        return false;
                    }
                });
        VALIDATORS.put(System.FONT_SCALE, new InclusiveFloatRangeValidator(0.85f, 1.3f));
        VALIDATORS.put(System.DIM_SCREEN, BOOLEAN_VALIDATOR);
        VALIDATORS.put(
                System.DISPLAY_COLOR_MODE,