diff options
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java index 9f73f865..ab846ba0 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -1146,6 +1146,10 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte } public int getDrawerItemId(String fragmentType) { + if(fragmentType == null) { + return R.id.drawer_home; + } + switch(fragmentType) { case "Home": return R.id.drawer_home; |