What Tom said

This commit is contained in:
Martin Fietz 2015-11-08 00:22:59 +01:00
parent ff224c8852
commit 3f3484b0fe
1 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,7 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity
}
}
public void loadFragment(final String tag, Bundle args) {
public void loadFragment(String tag, Bundle args) {
Log.d(TAG, "loadFragment(tag: " + tag + ", args: " + args + ")");
Fragment fragment = null;
switch (tag) {
@ -299,7 +299,9 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity
break;
default:
// default to the queue
tag = QueueFragment.TAG;
fragment = new QueueFragment();
args = null;
break;
}
currentTitle = navAdapter.getLabel(tag);