Update starred song when changed

This commit is contained in:
Joshua Bahnsen 2013-01-23 01:10:55 -07:00
parent 72111240e7
commit 75e7676310
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<manifest xmlns:a="http://schemas.android.com/apk/res/android" <manifest xmlns:a="http://schemas.android.com/apk/res/android"
package="net.sourceforge.subsonic.androidapp" package="net.sourceforge.subsonic.androidapp"
a:versionCode="47" a:versionCode="47"
a:versionName="3.9.9.9" a:installLocation="auto"> a:versionName="3.9.9.10" a:installLocation="auto">
<uses-permission a:name="android.permission.INTERNET"/> <uses-permission a:name="android.permission.INTERNET"/>
<uses-permission a:name="android.permission.READ_PHONE_STATE"/> <uses-permission a:name="android.permission.READ_PHONE_STATE"/>

View File

@ -165,6 +165,12 @@ public class SongView extends LinearLayout implements Checkable {
} }
statusTextView.setCompoundDrawablesWithIntrinsicBounds(leftImage, 0, rightImage, 0); statusTextView.setCompoundDrawablesWithIntrinsicBounds(leftImage, 0, rightImage, 0);
if (!song.getStarred()) {
starImageView.setImageDrawable(getResources().getDrawable(R.drawable.star_hollow));
} else {
starImageView.setImageDrawable(getResources().getDrawable(R.drawable.star));
}
boolean playing = downloadService.getCurrentPlaying() == downloadFile; boolean playing = downloadService.getCurrentPlaying() == downloadFile;
if (playing) { if (playing) {
titleTextView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_stat_play, 0, 0, 0); titleTextView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_stat_play, 0, 0, 0);