[SettingsProvider] extend font size scale range
As per requested in b/176940932#comment3 and b/156260178#comment32,
extending the valid font size scale range to [0.25, 5].
Existing CTS tests still pass.
BUG: 156260178
Test: atest android.provider.cts.settings.Settings_SystemTest
Test: atest android.app.cts.ApplicationTest
Change-Id: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
(cherry picked from commit df8852a0b5)
Merged-In: Icff82d727d63da4353342b0f9a5ca3c2ae1671c1
This commit is contained in:
@@ -89,7 +89,7 @@ public class SystemSettingsValidators {
|
||||
return value == null || value.length() < MAX_LENGTH;
|
||||
}
|
||||
});
|
||||
VALIDATORS.put(System.FONT_SCALE, new InclusiveFloatRangeValidator(0.85f, 1.3f));
|
||||
VALIDATORS.put(System.FONT_SCALE, new InclusiveFloatRangeValidator(0.25f, 5.0f));
|
||||
VALIDATORS.put(System.DIM_SCREEN, BOOLEAN_VALIDATOR);
|
||||
VALIDATORS.put(
|
||||
System.DISPLAY_COLOR_MODE,
|
||||
|
||||
Reference in New Issue
Block a user