Skip to content

Commit

Permalink
update logging of playerErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
NiciDieNase committed Apr 25, 2017
1 parent ca5398f commit bd50c70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {

@Override
public void onPlayerError(ExoPlaybackException error) {
String errorMessage = getResources().getString(R.string.error_fragment_message);
String errorMessage = error.getCause().getMessage();
Toast.makeText(PlayerActivity.this,errorMessage,Toast.LENGTH_SHORT).show();
Log.d(TAG,errorMessage,error);
PlayerActivity.this.finish();
Expand Down

0 comments on commit bd50c70

Please sign in to comment.