Trying to apply the MVP pattern. There is an activation, there is a button in it, with a long (3 seconds) pressing the button, a certain action should occur.
Question:
Where to handle long press? Those. count these 3s.
- In the activism itself. Hang the listener and count down 3 seconds. If 3 seconds have passed - send the event to the presenter that the button is pressed. (I tend to this)
- In the presenter. Pass the event ACTION_DOWN & ACTION_UP to the presenter and count 3 seconds in it.