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

Commit 8a924cae authored by Wei Jia's avatar Wei Jia Committed by android-build-merger
Browse files

Merge \\"MediaPlayer: fix java doc for setSurface and setDisplay.\\" into nyc-dev am: c6f39a0c

am: ffd09065

Change-Id: I5ac47afdfa0b5e6cd59d3423eea12b9cad3a31d5
parents b9cabc7f ffd09065
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -709,6 +709,8 @@ public class MediaPlayer extends PlayerBase
     * played.
     *
     * @param sh the SurfaceHolder to use for video display
     * @throws IllegalStateException if the internal player engine has not been
     * initialized or has been released.
     */
    public void setDisplay(SurfaceHolder sh) {
        mSurfaceHolder = sh;
@@ -739,6 +741,8 @@ public class MediaPlayer extends PlayerBase
     *
     * @param surface The {@link Surface} to be used for the video portion of
     * the media.
     * @throws IllegalStateException if the internal player engine has not been
     * initialized or has been released.
     */
    public void setSurface(Surface surface) {
        if (mScreenOnWhilePlaying && surface != null) {