Check for null text location when applying scaling changes

Bug: 225379715
Test: builds
Change-Id: I3cd88c315cbf7e1b3c7f5047d051c301a9caa848
This commit is contained in:
Sally
2022-03-18 20:31:51 +00:00
parent fe5ac369f9
commit 631c1ed726

View File

@@ -992,6 +992,9 @@ public final class AccessibilityInteractionController {
// Unchecked cast - an app that puts other objects in this bundle with this
// key will crash.
RectF textLocation = ((RectF) textLocations[i]);
if (textLocation == null) {
continue;
}
textLocation.scale(applicationScale);
if (spec != null) {
textLocation.scale(spec.scale);