mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-03-13 15:20:26 +08:00
PlaybackFragment: remove leftover touch code
This commit is contained in:
@@ -268,23 +268,6 @@ public class PlaybackFragment extends SeekModePlaybackFragment implements Playba
|
||||
}
|
||||
|
||||
private void applyTickle(MotionEvent event) {
|
||||
int gestureAreaWidthPx = 100;
|
||||
|
||||
// Reserve left area for gestures
|
||||
if (event.getAxisValue(MotionEvent.AXIS_X) < gestureAreaWidthPx) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Reserve right area for gestures
|
||||
if (getActivity() != null) {
|
||||
DisplayMetrics displayMetrics = new DisplayMetrics();
|
||||
getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
|
||||
|
||||
if (event.getAxisValue(MotionEvent.AXIS_X) > (displayMetrics.widthPixels - gestureAreaWidthPx)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
||||
tickle(); // show Player UI
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user