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:
recalculated 2016-01-04 15:26:05 -06:00
parent d18efcc3b1
commit 44f6ebbda1
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}