Skip to content

Commit

Permalink
Add Exception parameter to TvPlayer
Browse files Browse the repository at this point in the history
As this is an API change, this bumps the version

Change-Id: I75497039d9a985d2e87366434735c134f84e4191
  • Loading branch information
Fleker committed Feb 6, 2018
1 parent 96f400d commit f279da5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public void onPlayerStateChanged(boolean playWhenReady, int state) {
@Override
public void onPlayerError(ExoPlaybackException exception) {
for (Callback tvCallback : mTvPlayerCallbacks) {
tvCallback.onError();
tvCallback.onError(exception);
}
rendererBuildingState = RENDERER_BUILDING_STATE_IDLE;
for (Listener listener : listeners) {
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies {
doclava 'com.google.doclava:doclava:1.0.6'
}

def packageVersion = '0.2'
def packageVersion = '0.3'

task sourceJar(type: Jar) {
classifier = 'sources'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void onCompleted() {
}

@Override
public void onError() {
public void onError(Exception error) {
for (VideoAdPlayerCallback callback : mAdCallbacks) {
callback.onError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void onStarted() {}
public void onCompleted() {}

/** Called when an error occurs during video playback. */
public void onError() {}
public void onError(Exception error) {}

/** Called when the video is paused. */
public void onPaused() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.android.controller.FragmentController;
import org.robolectric.annotation.Config;
import org.robolectric.shadows.ShadowLooper;
import org.robolectric.shadows.ShadowToast;
import org.robolectric.util.FragmentController;

/** Tests for {@link ChannelSetupStepFragment} */
@RunWith(RobolectricGradleTestRunner.class)
Expand Down

0 comments on commit f279da5

Please sign in to comment.