Merge "Check for null text location when applying scaling changes" into tm-dev am: 5d9e19b664
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17261698 Change-Id: I4e63de766427bdd48a54831e73b5b49a6239e788
This commit is contained in:
@@ -992,6 +992,9 @@ public final class AccessibilityInteractionController {
|
|||||||
// Unchecked cast - an app that puts other objects in this bundle with this
|
// Unchecked cast - an app that puts other objects in this bundle with this
|
||||||
// key will crash.
|
// key will crash.
|
||||||
RectF textLocation = ((RectF) textLocations[i]);
|
RectF textLocation = ((RectF) textLocations[i]);
|
||||||
|
if (textLocation == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
textLocation.scale(applicationScale);
|
textLocation.scale(applicationScale);
|
||||||
if (spec != null) {
|
if (spec != null) {
|
||||||
textLocation.scale(spec.scale);
|
textLocation.scale(spec.scale);
|
||||||
|
|||||||
Reference in New Issue
Block a user