When the user hits the "settings dots" and pops up the menu shown, I want the timer to stop immediately (i.e., before user picks from the list), but I don't know where to put Timer.pauseTimer()
.
When the user taps one of the 4 items in the dropdown list, MainActivity.onOptionsSelected()
is activated and I can pause the timer, but how do I get control at the instant the dots icon is tapped?
I had hoped onAttach
would do it in the SettingsFragment
, but no. Timer ticks away with the screen looking as shown below.