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

Commit 21c70438 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[A11y Focus API] Add null AttachInfo check in View#onFocusChanged" into main

parents 52359ee0 1e3dbcdb
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -8832,12 +8832,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            }
            if (android.view.accessibility.Flags.requestRectangleWithSource()) {
                if (mAttachInfo != null) {
                    final Rect r = mAttachInfo.mTmpInvalRect;
                    getLocalVisibleRect(r);
                    requestRectangleOnScreen(r, false,
                            RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS);
                }
            }
        }
        invalidate(true);
        ListenerInfo li = mListenerInfo;