Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- webViewRadar.setOnTouchListener { _, event ->
- when (event!!.action) {
- MotionEvent.ACTION_DOWN -> {
- mHandler.removeCallbacksAndMessages(null)
- resume()
- }
- MotionEvent.ACTION_UP -> pauseWithDelay() // Tự động pause sau 15s
- }
- false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement