diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-08-29 10:56:30 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-08-29 10:56:30 -0700 |
commit | a279101ad307ac2c199f31d85aa31533882b483c (patch) | |
tree | 7c744204736ab1c98fbd6be7510ae87bee3c0221 /app | |
parent | fd5001dab9dcb3ec4b8b8d690b0ab92a950e0866 (diff) | |
download | dsub-a279101ad307ac2c199f31d85aa31533882b483c.tar.gz dsub-a279101ad307ac2c199f31d85aa31533882b483c.tar.bz2 dsub-a279101ad307ac2c199f31d85aa31533882b483c.zip |
Fix random crash
Diffstat (limited to 'app')
-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; |