|
|
|
|
@ -271,7 +271,7 @@ public class DetailActivity extends BaseActivity implements Clock.Callback, Cust |
|
|
|
|
mBinding.control.action.opening.setOnLongClickListener(view -> onOpeningReset()); |
|
|
|
|
mBinding.video.setOnTouchListener((view, event) -> mKeyDown.onTouchEvent(event)); |
|
|
|
|
mBinding.control.action.getRoot().setOnTouchListener(this::onActionTouch); |
|
|
|
|
mBinding.swipeLayout.setOnRefreshListener(this::getDetail); |
|
|
|
|
mBinding.swipeLayout.setOnRefreshListener(this::onSwipeRefresh); |
|
|
|
|
mBinding.control.seek.setListener(mPlayers); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -661,6 +661,11 @@ public class DetailActivity extends BaseActivity implements Clock.Callback, Cust |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void onSwipeRefresh() { |
|
|
|
|
if (mBinding.progressLayout.isEmpty()) getDetail(); |
|
|
|
|
else onRefresh(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void toggleFullscreen() { |
|
|
|
|
if (isFullscreen()) exitFullscreen(); |
|
|
|
|
else enterFullscreen(); |
|
|
|
|
|