Show Library drawer item when offline

This commit is contained in:
Andrew Rabert 2017-03-05 02:36:00 -05:00
parent 25dd053834
commit 79e2b9a336
1 changed files with 0 additions and 2 deletions

View File

@ -518,8 +518,6 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
MenuItem offlineMenuItem = drawerList.getMenu().findItem(R.id.drawer_offline); MenuItem offlineMenuItem = drawerList.getMenu().findItem(R.id.drawer_offline);
if(Util.isOffline(this)) { if(Util.isOffline(this)) {
setDrawerItemVisible(R.id.drawer_library, false);
if(lastSelectedPosition == 0 || lastSelectedPosition == R.id.drawer_library) { if(lastSelectedPosition == 0 || lastSelectedPosition == R.id.drawer_library) {
String newFragment = Util.openToTab(this); String newFragment = Util.openToTab(this);
if(newFragment == null || "Library".equals(newFragment)) { if(newFragment == null || "Library".equals(newFragment)) {