public bool OnTouch(View v, MotionEvent e) { switch (e.Action) { case MotionEventActions.Down: PressTime = CurrentTimeMillis(); StoriesProgress.Pause(); return(false); case MotionEventActions.Up: long now = CurrentTimeMillis(); StoriesProgress.Resume(); return(Limit < now - PressTime); } return(false); }
public bool OnTouch(View v, MotionEvent e) { try { switch (e.Action) { case MotionEventActions.Down: PressTime = CurrentTimeMillis(); StoriesProgress.Pause(); if (StoryVideoView != null && StoryVideoView.IsPlaying) { PlayerPaused = true; StoryVideoView?.Pause(); } return(false); case MotionEventActions.Up: long now = CurrentTimeMillis(); StoriesProgress.Resume(); if (StoryVideoView != null && PlayerPaused) { StoryVideoView?.Resume(); } return(Limit < now - PressTime); } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } return(false); }