mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-03-15 06:23:55 +03:00
Show Library drawer item when offline
This commit is contained in:
parent
25dd053834
commit
79e2b9a336
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user