Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onHiddenChanged(boolean hidden) {
- Log.d(TAG, "onHiddenChanged: " + hidden);
- if (!hidden){
- AppCompatActivity currentActivity = ((AppCompatActivity) getActivity());
- if (toolbar != null) {
- currentActivity.setSupportActionBar(toolbar);
- currentActivity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
- }
- }
- super.onHiddenChanged(hidden);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement