Эх сурвалжийг харах

fix: Wrong argument count, format string media_event_done requires 1 but format call supplies 0

tobiasKaminsky 7 жил өмнө
parent
commit
58832b176d

+ 1 - 1
src/main/java/com/owncloud/android/media/MediaService.java

@@ -499,7 +499,7 @@ public class MediaService extends Service implements OnCompletionListener, OnPre
 
     /** Called when media player is done playing current song. */
     public void onCompletion(MediaPlayer player) {
-        Toast.makeText(this, String.format(getString(R.string.media_event_done, mFile.getFileName())), Toast.LENGTH_LONG).show();
+        Toast.makeText(this, String.format(getString(R.string.media_event_done), mFile.getFileName()), Toast.LENGTH_LONG).show();
         if (mMediaController != null) {
             // somebody is still bound to the service
             player.seekTo(0);