Make VideoPlayer toast error message translatable

Closes #6150
// FREEBIE
This commit is contained in:
haffenloher
2017-02-01 03:50:48 +01:00
committed by Moxie Marlinspike
parent 8bf160532e
commit 9c1f7f1657
2 changed files with 18 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ public class VideoPlayer extends FrameLayout {
Log.w(TAG, "Playing video directly from non-local Uri...");
this.videoView.setVideoURI(videoSource.getUri());
} else {
Toast.makeText(getContext(), "Error playing video...", Toast.LENGTH_LONG).show();
Toast.makeText(getContext(), getContext().getString(R.string.VideoPlayer_error_playing_video), Toast.LENGTH_LONG).show();
return;
}