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

Commit 2547da26 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "Clarify when View#getWindowToken can return null" into main

parents 2e325e23 aabed5b4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22299,6 +22299,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * Retrieve a unique token identifying the window this view is attached to.
     * @return Return the window's token for use in
     * {@link WindowManager.LayoutParams#token WindowManager.LayoutParams.token}.
     * This token maybe null if this view is not attached to a window.
     * @see #isAttachedToWindow() for current window attach state
     * @see OnAttachStateChangeListener to listen to window attach/detach state changes
     */
    public IBinder getWindowToken() {
        return mAttachInfo != null ? mAttachInfo.mWindowToken : null;