Problem: Fragment onResume() in ViewPager is fired before the fragment becomes actually visible.
onResume()
ViewPager
For example, I have 2 fragments with
Add following Code inside fragment
@Override public void setMenuVisibility(final boolean visible) { super.setMenuVisibility(visible); if (visible && isResumed()) { } }