Answer the question
In order to leave comments, you need to log in
How to terminate Android ActionMode context menu when Fragment becomes invisible?
There are several Fragments. At the moment, only one of them is visible in the Activity. But there are buttons that switch Fragment from one to another, and you can also return to the previous Fragment using the back button.
For example, one of the Fragments contains a WebView. The user selects a piece of text and a context menu like Copy / Send, etc. appears.
Instead of selecting from the context menu, the user switches the Fragment to another Fragment, and the ActionMode context menu remains hung from the previous Fragment.
I can not understand how to complete the ActionMode when changing fragments?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question