Quantcast
Channel: BlogoSfera » back
Viewing all articles
Browse latest Browse all 18

Why my back button does nothing?

$
0
0

I have a AppCompatActivity activity named MainActivity with the following code placed on onCreate method to show/hide back and menu button getSupportFragmentManager().addOnBackStackChangedListener( new FragmentManager.OnBackStackChangedListener() { @Override public void onBackStackChanged() { toggle.setDrawerIndicatorEnabled( getSupportFragmentManager().getBackStackEntryCount() == 0); getSupportActionBar().setDisplayHomeAsUpEnabled( getSupportFragmentManager().getBackStackEntryCount() > 0); } }); This is my only activity, I use fragments for the different views. The back button […]

The post Why my back button does nothing? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 18

Latest Images

Trending Articles



Latest Images