Possible fix to a NullPointerException that i can't reproduce but is on the Developer Console

This commit is contained in:
Synced Synapse 2015-01-21 22:03:17 +00:00
parent 5709a0faf5
commit 7a4352f221
1 changed files with 3 additions and 1 deletions

View File

@ -271,8 +271,10 @@ public class NavigationDrawerFragment extends Fragment {
return ACTIVITY_MUSIC;
else if (activity instanceof AddonsActivity)
return ACTIVITY_ADDONS;
else if (activity instanceof SettingsActivity)
return ACTIVITY_SETTINGS;
return -1;
return ACTIVITY_HOSTS;
}
/**