only reset main activity when a new library has been selected

This commit is contained in:
dkanada 2020-05-02 17:49:56 +09:00
commit fee5e5704c

View file

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