private void initScreen() { if (userHasAuthenticated) { Ln.d("Foo"); final FragmentManager fragmentManager = getSupportFragmentManager(); fragmentManager.beginTransaction().replace(R.id.container, new CarouselFragment()).commit(); } }
@Subscribe public void onNavigationItemSelected(NavItemSelectedEvent event) { Ln.d("Selected: %1$s", event.getItemPosition()); switch (event.getItemPosition()) { case 0: // Home // do nothing as we're already on the home screen. getCurrentUser(); break; } }