Fix a11y service icons are tiny after changing display size to "Largest"

Root cause: Scaled down non vector drawable to to avoid crashing Settings
Solution: Enlarge the maxWidth & maxHeight from 500 to 600

Bug: 195975294
Test: manual test
Change-Id: I9d771cfaa7cf3eed37265219c082b6337fa5c063
This commit is contained in:
menghanli
2021-08-24 08:45:46 +08:00
parent 7e20c76c5e
commit a1674787fe

View File

@@ -1013,7 +1013,8 @@ public final class Utils extends com.android.settingslib.Utils {
Drawable safeIcon = icon;
if ((icon != null) && !(icon instanceof VectorDrawable)) {
safeIcon = getSafeDrawable(icon, 500, 500);
safeIcon = getSafeDrawable(icon,
/* MAX_DRAWABLE_SIZE */ 600, /* MAX_DRAWABLE_SIZE */ 600);
}
return safeIcon;