My activity contains many fragments and it has been found that every time a bottom sheet fragment opens up in the activity, the onCreateOptionsMenu function gets called again. How do I ensure that the function gets called only during the start of the Activity
I tried using add menu provider, setHasMenuOptions and invalidate function.