Reverse (un)lock icons in queue
When the action of the button is to lock, the icon should be a closed lock and vice versa.
This commit is contained in:
parent
d18efcc3b1
commit
44f6ebbda1
|
@ -34,10 +34,10 @@ public class MenuItemUtils extends de.danoeh.antennapod.core.menuhandler.MenuIte
|
|||
TypedArray ta = context.obtainStyledAttributes(lockIcons);
|
||||
if (UserPreferences.isQueueLocked()) {
|
||||
queueLock.setTitle(de.danoeh.antennapod.R.string.unlock_queue);
|
||||
queueLock.setIcon(ta.getDrawable(1));
|
||||
queueLock.setIcon(ta.getDrawable(0));
|
||||
} else {
|
||||
queueLock.setTitle(de.danoeh.antennapod.R.string.lock_queue);
|
||||
queueLock.setIcon(ta.getDrawable(0));
|
||||
queueLock.setIcon(ta.getDrawable(1));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue