diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-11-26 20:30:02 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-11-26 20:30:02 -0800 |
commit | 3613c659e8bc7cee6a0552e07794625e7ea4e562 (patch) | |
tree | fd7b4bc93166dbae17b3b9604bcb0b35ab122875 /src/github | |
parent | a7893f691031e9579bb1e0da05e691bbaf4abf4a (diff) | |
download | dsub-3613c659e8bc7cee6a0552e07794625e7ea4e562.tar.gz dsub-3613c659e8bc7cee6a0552e07794625e7ea4e562.tar.bz2 dsub-3613c659e8bc7cee6a0552e07794625e7ea4e562.zip |
Apparently duration is supposed to be in ms
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/util/compat/RemoteControlClientICS.java | 6 |
1 files changed, 5 insertions, 1 deletions
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() { |