Loading core/java/android/tv/TvInputManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -414,8 +414,9 @@ public final class TvInputManager { * * * @param surface A {@link android.view.Surface} used to render video. * @param surface A {@link android.view.Surface} used to render video. * @throws IllegalStateException if the session has been already released. * @throws IllegalStateException if the session has been already released. * @hide */ */ void setSurface(Surface surface) { public void setSurface(Surface surface) { if (mToken == null) { if (mToken == null) { throw new IllegalStateException("the session has been already released"); throw new IllegalStateException("the session has been already released"); } } Loading Loading
core/java/android/tv/TvInputManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -414,8 +414,9 @@ public final class TvInputManager { * * * @param surface A {@link android.view.Surface} used to render video. * @param surface A {@link android.view.Surface} used to render video. * @throws IllegalStateException if the session has been already released. * @throws IllegalStateException if the session has been already released. * @hide */ */ void setSurface(Surface surface) { public void setSurface(Surface surface) { if (mToken == null) { if (mToken == null) { throw new IllegalStateException("the session has been already released"); throw new IllegalStateException("the session has been already released"); } } Loading