|
|
|
|
@ -874,7 +874,7 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo |
|
|
|
|
private void enterFullscreen() { |
|
|
|
|
if (isFullscreen()) return; |
|
|
|
|
if (isLand()) setTransition(); |
|
|
|
|
mBinding.video.postDelayed(() -> mBinding.video.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT)), 50); |
|
|
|
|
mBinding.video.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT)); |
|
|
|
|
setRequestedOrientation(mPlayers.isPortrait() ? ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT : ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE); |
|
|
|
|
mBinding.control.title.setVisibility(View.VISIBLE); |
|
|
|
|
setRotate(mPlayers.isPortrait(), true); |
|
|
|
|
@ -900,7 +900,7 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo |
|
|
|
|
|
|
|
|
|
private void setTransition() { |
|
|
|
|
AutoTransition transition = new AutoTransition(); |
|
|
|
|
transition.setDuration(100); |
|
|
|
|
transition.setDuration(200); |
|
|
|
|
TransitionManager.beginDelayedTransition(mBinding.video, transition); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|