I want to preserve the text selection in a webView while preventing any contextual menu of the actioMode from being shown. Neither the new floating one nor the old actionBar, just the selection handles and of course the selection behaviour.
Hooking to the actionModeCallback in startActionMode allows me to clear all items in the menu in the callback onCreateActionMode.
This works fine on android 6, since an empty floating menu won't show at all, and the actionMode text selection behaviour is preserved.
Unfortunately on android < 6 this leaves an empty actionBar shown, how can I completely remove it?
Is there a clean way to obtain this? I'm working in a ReactNative app, but using a custom extended webview, and I have also access to mainActivity code.