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"
package="net.sourceforge.subsonic.androidapp"
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.READ_PHONE_STATE"/>

View File

@ -164,6 +164,12 @@ public class SongView extends LinearLayout implements Checkable {
statusTextView.setText(null);
}
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;
if (playing) {