only reset main activity when a new library has been selected
This commit is contained in:
parent
98b44b57b4
commit
fee5e5704c
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
|||
break;
|
||||
}
|
||||
|
||||
// only run the following code when a new library has been selected
|
||||
if (menuItem.getItemId() == QueryUtil.currentLibrary.getId().hashCode()) return true;
|
||||
for (BaseItemDto itemDto : libraries) {
|
||||
if (menuItem.getItemId() == itemDto.getId().hashCode()) {
|
||||
QueryUtil.currentLibrary = itemDto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue