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

Commit 38439390 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add null parent check to startActionMode"

parents c28baf55 5160e2a1
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);
    }
    }
    /**
    /**