onOpenSubMenu

abstract fun onOpenSubMenu(@NonNull subMenu: @NonNull MenuBuilder): Boolean(source)

Called when a submenu opens. Useful for notifying the application of menu state so that it does not attempt to hide the action bar while a submenu is open or similar.

Return

true if the Callback will handle presenting the submenu, false if the presenter should attempt to do so.

Parameters

subMenu

Submenu currently being opened