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

Commit 5160e2a1 authored by John Reck's avatar John Reck
Browse files

Add null parent check to startActionMode

 Bug: 6012515

Change-Id: I9f684bf0fd314285c4d4933ba2a7645f10c9dc7b
parent 1eb4c26a
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -3631,7 +3631,9 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
     * @see ActionMode
     * @see ActionMode
     */
     */
    public ActionMode startActionMode(ActionMode.Callback callback) {
    public ActionMode startActionMode(ActionMode.Callback callback) {
        return getParent().startActionModeForChild(this, callback);
        ViewParent parent = getParent();
        if (parent == null) return null;
        return parent.startActionModeForChild(this, callback);
    }
    }
    /**
    /**