Update starred song when changed
This commit is contained in:
parent
72111240e7
commit
75e7676310
|
@ -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"/>
|
||||||
|
|
|
@ -164,6 +164,12 @@ public class SongView extends LinearLayout implements Checkable {
|
||||||
statusTextView.setText(null);
|
statusTextView.setText(null);
|
||||||
}
|
}
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in New Issue