From 3613c659e8bc7cee6a0552e07794625e7ea4e562 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 26 Nov 2013 20:30:02 -0800 Subject: Apparently duration is supposed to be in ms --- src/github/daneren2005/dsub/util/compat/RemoteControlClientICS.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/util/compat/RemoteControlClientICS.java b/src/github/daneren2005/dsub/util/compat/RemoteControlClientICS.java index 2b1d0be5..3bf06b82 100644 --- a/src/github/daneren2005/dsub/util/compat/RemoteControlClientICS.java +++ b/src/github/daneren2005/dsub/util/compat/RemoteControlClientICS.java @@ -11,11 +11,15 @@ import android.content.Intent; import android.media.AudioManager; import android.media.MediaMetadataRetriever; import android.media.RemoteControlClient; +import android.util.Log; + import github.daneren2005.dsub.activity.SubsonicActivity; import github.daneren2005.dsub.service.DownloadService; @TargetApi(14) public class RemoteControlClientICS extends RemoteControlClientHelper { + private static String TAG = RemoteControlClientICS.class.getSimpleName(); + protected RemoteControlClient mRemoteControl; protected ImageLoader imageLoader; protected DownloadServiceImpl downloadService; @@ -75,7 +79,7 @@ public class RemoteControlClientICS extends RemoteControlClientHelper { .putLong(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER, (currentSong == null) ? 0 : ((currentSong.getTrack() == null) ? 0 : currentSong.getTrack())) .putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, (currentSong == null) ? - 0 : ((currentSong.getDuration() == null) ? 0 : currentSong.getDuration())); + 0 : ((currentSong.getDuration() == null) ? 0 : (currentSong.getDuration() * 1000))); } protected int getTransportFlags() { -- cgit v1.2.3