aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-26 20:30:02 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-26 20:30:02 -0800
commit3613c659e8bc7cee6a0552e07794625e7ea4e562 (patch)
treefd7b4bc93166dbae17b3b9604bcb0b35ab122875 /src/github
parenta7893f691031e9579bb1e0da05e691bbaf4abf4a (diff)
downloaddsub-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.java6
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() {