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

Commit 30794097 authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix NPE in focus hotspot management

BUG: 15631051
Change-Id: I24b014f940c43a1f92fd050439bb6a42b8e24310
parent 7cb5f969
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4796,7 +4796,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     */
    private void manageFocusHotspot(boolean focused, View v) {
        final Rect r = new Rect();
        if (!focused && v != null) {
        if (!focused && v != null && mAttachInfo != null) {
            v.getBoundsOnScreen(r);
            final int[] location = mAttachInfo.mTmpLocation;
            getLocationOnScreen(location);