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

Commit 631c1ed7 authored by Sally's avatar Sally
Browse files

Check for null text location when applying scaling changes

Bug: 225379715
Test: builds
Change-Id: I3cd88c315cbf7e1b3c7f5047d051c301a9caa848
parent fe5ac369
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);