update logging of playerErrors

This commit is contained in:
Felix 2017-04-25 23:40:42 +02:00
parent ca5398fc6f
commit bd50c706fb

View file

@ -161,7 +161,7 @@ public class PlayerActivity extends AbstractServiceConnectedAcitivty
@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();