Skip to content

Commit f279da5

Browse files
committed
Add Exception parameter to TvPlayer
As this is an API change, this bumps the version Change-Id: I75497039d9a985d2e87366434735c134f84e4191
1 parent 96f400d commit f279da5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/src/main/java/com/example/android/sampletvinput/player/DemoPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public void onPlayerStateChanged(boolean playWhenReady, int state) {
529529
@Override
530530
public void onPlayerError(ExoPlaybackException exception) {
531531
for (Callback tvCallback : mTvPlayerCallbacks) {
532-
tvCallback.onError();
532+
tvCallback.onError(exception);
533533
}
534534
rendererBuildingState = RENDERER_BUILDING_STATE_IDLE;
535535
for (Listener listener : listeners) {

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
doclava 'com.google.doclava:doclava:1.0.6'
4848
}
4949

50-
def packageVersion = '0.2'
50+
def packageVersion = '0.3'
5151

5252
task sourceJar(type: Jar) {
5353
classifier = 'sources'

library/src/main/java/com/google/android/media/tv/companionlibrary/AdController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public void onCompleted() {
253253
}
254254

255255
@Override
256-
public void onError() {
256+
public void onError(Exception error) {
257257
for (VideoAdPlayerCallback callback : mAdCallbacks) {
258258
callback.onError();
259259
}

library/src/main/java/com/google/android/media/tv/companionlibrary/TvPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void onStarted() {}
3333
public void onCompleted() {}
3434

3535
/** Called when an error occurs during video playback. */
36-
public void onError() {}
36+
public void onError(Exception error) {}
3737

3838
/** Called when the video is paused. */
3939
public void onPaused() {}

library/src/test/java/com/google/android/media/tv/companionlibrary/setup/ChannelSetupStepFragmentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
import org.junit.Test;
3434
import org.junit.runner.RunWith;
3535
import org.robolectric.Robolectric;
36-
import org.robolectric.android.controller.FragmentController;
3736
import org.robolectric.annotation.Config;
3837
import org.robolectric.shadows.ShadowLooper;
3938
import org.robolectric.shadows.ShadowToast;
39+
import org.robolectric.util.FragmentController;
4040

4141
/** Tests for {@link ChannelSetupStepFragment} */
4242
@RunWith(RobolectricGradleTestRunner.class)

0 commit comments

Comments
 (0)