Update CustomKeyDownLive.java

pull/171/head
FongMi 2 years ago
parent 8af94ea01e
commit 56ed1aba34
  1. 6
      app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java

@ -111,9 +111,11 @@ public class CustomKeyDownLive extends GestureDetector.SimpleOnGestureListener {
} else if (e2.getX() - e1.getX() > DISTANCE && Math.abs(velocityX) > VELOCITY) {
listener.onKeyRight(Constant.INTERVAL_SEEK * 3);
} else if (e1.getY() - e2.getY() > DISTANCE && Math.abs(velocityY) > VELOCITY) {
listener.onKeyUp();
if (Setting.isInvert()) listener.onKeyDown();
else listener.onKeyUp();
} else if (e2.getY() - e1.getY() > DISTANCE && Math.abs(velocityY) > VELOCITY) {
listener.onKeyDown();
if (Setting.isInvert()) listener.onKeyUp();
else listener.onKeyDown();
}
}

Loading…
Cancel
Save