Fixed a crash on notification tap.

This commit is contained in:
Felix Ableitner 2014-02-08 20:50:14 +01:00
parent 278c2bb75a
commit c02d9124ae

View file

@ -100,7 +100,6 @@ public class MainActivity extends ActionBarActivity {
*/ */
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
onNewIntent(getIntent());
final ActionBar actionBar = getSupportActionBar(); final ActionBar actionBar = getSupportActionBar();
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
@ -175,6 +174,7 @@ public class MainActivity extends ActionBarActivity {
mServerFragment = new ServerFragment(); mServerFragment = new ServerFragment();
mRouteFragment = new RouteFragment(); mRouteFragment = new RouteFragment();
} }
onNewIntent(getIntent());
} }
/** /**