Merge "Check for null text location when applying scaling changes" into tm-dev

This commit is contained in:
Sally Yuen
2022-03-21 16:25:16 +00:00
committed by Android (Google) Code Review

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);