|
|
|
|
@ -9,7 +9,6 @@ import androidx.annotation.NonNull; |
|
|
|
|
|
|
|
|
|
import com.fongmi.android.tv.App; |
|
|
|
|
import com.fongmi.android.tv.Constant; |
|
|
|
|
import com.fongmi.android.tv.Setting; |
|
|
|
|
import com.fongmi.android.tv.utils.KeyUtil; |
|
|
|
|
import com.fongmi.android.tv.utils.ResUtil; |
|
|
|
|
|
|
|
|
|
@ -56,11 +55,9 @@ public class CustomKeyDownLive extends GestureDetector.SimpleOnGestureListener { |
|
|
|
|
} else if (event.getAction() == KeyEvent.ACTION_DOWN && KeyUtil.isRightKey(event)) { |
|
|
|
|
listener.onSeeking(addTime()); |
|
|
|
|
} else if (event.getAction() == KeyEvent.ACTION_DOWN && KeyUtil.isUpKey(event)) { |
|
|
|
|
if (Setting.isInvert()) listener.onKeyDown(); |
|
|
|
|
else listener.onKeyUp(); |
|
|
|
|
listener.onKeyUp(); |
|
|
|
|
} else if (event.getAction() == KeyEvent.ACTION_DOWN && KeyUtil.isDownKey(event)) { |
|
|
|
|
if (Setting.isInvert()) listener.onKeyUp(); |
|
|
|
|
else listener.onKeyDown(); |
|
|
|
|
listener.onKeyDown(); |
|
|
|
|
} else if (event.getAction() == KeyEvent.ACTION_UP && KeyUtil.isLeftKey(event)) { |
|
|
|
|
listener.onKeyLeft(holdTime); |
|
|
|
|
} else if (event.getAction() == KeyEvent.ACTION_UP && KeyUtil.isRightKey(event)) { |
|
|
|
|
|