Remove sending track, disc and genre to lockscreen controls, version 1.3.0.5

This commit is contained in:
Joshua Bahnsen 2014-01-22 07:30:15 -07:00
parent d122105b92
commit c60fef26d4
2 changed files with 11 additions and 6 deletions

View File

@ -2,8 +2,8 @@
<manifest xmlns:a="http://schemas.android.com/apk/res/android"
package="com.thejoshwa.ultrasonic.androidapp"
a:installLocation="auto"
a:versionCode="44"
a:versionName="1.3.0.4">
a:versionCode="45"
a:versionName="1.3.0.5">
<uses-permission a:name="android.permission.INTERNET"/>
<uses-permission a:name="android.permission.READ_PHONE_STATE"/>

View File

@ -1564,12 +1564,17 @@ public class DownloadServiceImpl extends Service implements DownloadService
String artist = currentSong.getArtist();
String album = currentSong.getAlbum();
String title = currentSong.getTitle();
String genre = currentSong.getGenre();
Integer track = currentSong.getTrack();
Integer disc = currentSong.getDiscNumber();
//String genre = currentSong.getGenre();
//Integer track = currentSong.getTrack();
//Integer disc = currentSong.getDiscNumber();
Long duration = (long) currentSong.getDuration() * 1000;
remoteControlClient.editMetadata(true).putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, artist).putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, artist).putString(MediaMetadataRetriever.METADATA_KEY_ALBUM, album).putString(MediaMetadataRetriever.METADATA_KEY_TITLE, title).putString(MediaMetadataRetriever.METADATA_KEY_GENRE, genre).putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, duration).putLong(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER, track).putLong(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER, disc).putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, lockScreenBitmap).apply();
remoteControlClient.editMetadata(true).putString(MediaMetadataRetriever.METADATA_KEY_ARTIST, artist).putString(MediaMetadataRetriever.METADATA_KEY_ALBUMARTIST, artist).putString(MediaMetadataRetriever.METADATA_KEY_ALBUM, album).putString(MediaMetadataRetriever.METADATA_KEY_TITLE, title)
//.putString(MediaMetadataRetriever.METADATA_KEY_GENRE, genre)
.putLong(MediaMetadataRetriever.METADATA_KEY_DURATION, duration)
//.putLong(MediaMetadataRetriever.METADATA_KEY_CD_TRACK_NUMBER, track)
//.putLong(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER, disc)
.putBitmap(RemoteControlClient.MetadataEditor.BITMAP_KEY_ARTWORK, lockScreenBitmap).apply();
}
}