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

Commit 13fd5618 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Update the comment for View#clearFocus

Change-Id: I779f94e88821574c74e5e76d99ae555a47042c12
parent 064d2d65
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -3761,8 +3761,14 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
    }
    /**
     * Called when this view wants to give up focus. This will cause
     * {@link #onFocusChanged(boolean, int, android.graphics.Rect)} to be called.
     * Called when this view wants to give up focus. If focus is cleared
     * {@link #onFocusChanged(boolean, int, android.graphics.Rect)} is called.
     * <p>
     * <strong>Note:</strong> When a View clears focus the framework is trying
     * to give focus to the first focusable View from the top. Hence, if this
     * View is the first from the top that can take focus, then its focus will
     * not be cleared nor will the focus change callback be invoked.
     * </p>
     */
    public void clearFocus() {
        if (DBG) {