From bd50c706fb4198aaf91a2a8df0c837f9b8bd1bdb Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 25 Apr 2017 23:40:42 +0200 Subject: [PATCH] update logging of playerErrors --- .../de/nicidienase/chaosflix/activities/PlayerActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java b/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java index 683f070a..31b2cbdd 100644 --- a/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java +++ b/app/src/main/java/de/nicidienase/chaosflix/activities/PlayerActivity.java @@ -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();