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

Commit 02ce449b authored by Nick Chalko's avatar Nick Chalko Committed by Android (Google) Code Review
Browse files

Merge "Include documentation for a null surface in TvInputService.Session.onSetSurface."

parents 2584736f 922a6f37
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -598,10 +598,13 @@ public abstract class TvInputService extends Service {
        }

    /**
         * Sets the {@link Surface} for the current input session on which the TV input renders
         * video.
     * Sets the {@link Surface} for the current input session on which the TV input renders video.
     * <p>
     * When {@code setSurface(null)} is called, the implementation should stop using the Surface
     * object previously given and release any references to it.
     *
         * @param surface {@link Surface} an application passes to this TV input session.
     * @param surface possibly {@code null} {@link Surface} an application passes to this TV input
     *        session.
     * @return {@code true} if the surface was set, {@code false} otherwise.
     */
        public abstract boolean onSetSurface(Surface surface);