One way is to define a boolean variable, then check its state before processing the menu item. You can add a check box in the activity or layout to toggle the variable value.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.