From 035cf2dd1f1dd20896a3ed2d08f918bae8d7cd1a Mon Sep 17 00:00:00 2001 From: FongMi Date: Tue, 14 May 2024 23:33:29 +0800 Subject: [PATCH] Fix bug --- .../java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java | 2 +- .../java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java b/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java index 90b017e30..604b3c7ee 100644 --- a/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java +++ b/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java @@ -47,7 +47,7 @@ public class CustomKeyDownLive extends GestureDetector.SimpleOnGestureListener { public boolean onTouchEvent(MotionEvent e) { if (changeBright && e.getAction() == MotionEvent.ACTION_UP) listener.onBrightEnd(); if (changeVolume && e.getAction() == MotionEvent.ACTION_UP) listener.onVolumeEnd(); - return detector.onTouchEvent(e); + return e.getPointerCount() == 1 && detector.onTouchEvent(e); } public void setLock(boolean lock) { diff --git a/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java b/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java index adea3026b..ededb1ad0 100644 --- a/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java +++ b/app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java @@ -47,7 +47,7 @@ public class CustomKeyDownVod extends GestureDetector.SimpleOnGestureListener { if (changeSpeed && e.getAction() == MotionEvent.ACTION_UP) listener.onSpeedEnd(); if (changeBright && e.getAction() == MotionEvent.ACTION_UP) listener.onBrightEnd(); if (changeVolume && e.getAction() == MotionEvent.ACTION_UP) listener.onVolumeEnd(); - return detector.onTouchEvent(e); + return e.getPointerCount() == 1 && detector.onTouchEvent(e); } public void setLock(boolean lock) {