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

Commit 61c6fa39 authored by Songchun Fan's avatar Songchun Fan Committed by Automerger Merge Worker
Browse files

Merge "[SettingsProvider] fix font size scale validator" into rvc-dev am: 9431e056

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13178963

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b35352429798e8a7197a713d1fa548e1a434f62
parents 95251a1b 9431e056
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,