Fixed
Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
jb...@google.com <jb...@google.com> #3
I suspect that we're just not setting the default state to be capped at STARTED and you'd see the same oscillation with setUserVisibleHint(). We should just fix it for both cases though
Description
Component used: Fragment
Version used:1.3.0
Devices/Android versions reproduced on: Emulator Api level 30
Sample project:https://github.com/libon/BottomNavigationApp
Starting with activity 1.2.0 and fragment 1.3.0: when showing a fragment, it's onCreateOptionsMenu() isn't called.
Two workarounds are possible:
FragmentManager.enableNewStateManager(false)
requireActivity().invalidateOptionsMenu()
fromonHiddenChanged(hidden: Boolean)