|
|
|
|
@ -14,7 +14,6 @@ import android.text.SpannableStringBuilder; |
|
|
|
|
import android.text.Spanned; |
|
|
|
|
import android.text.TextUtils; |
|
|
|
|
import android.text.style.ClickableSpan; |
|
|
|
|
import android.util.Log; |
|
|
|
|
import android.view.MotionEvent; |
|
|
|
|
import android.view.View; |
|
|
|
|
import android.view.ViewGroup; |
|
|
|
|
@ -882,7 +881,6 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo |
|
|
|
|
|
|
|
|
|
private void enterFullscreen() { |
|
|
|
|
if (isFullscreen()) return; |
|
|
|
|
Log.e("DDD", "enterFullscreen"); |
|
|
|
|
if (isLand()) setTransition(); |
|
|
|
|
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); |
|
|
|
|
@ -896,7 +894,6 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo |
|
|
|
|
|
|
|
|
|
private void exitFullscreen() { |
|
|
|
|
if (!isFullscreen()) return; |
|
|
|
|
Log.e("DDD", "exitFullscreen"); |
|
|
|
|
if (isLand()) setTransition(); |
|
|
|
|
setRequestedOrientation(isPort() ? ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT : ActivityInfo.SCREEN_ORIENTATION_FULL_USER); |
|
|
|
|
mBinding.episode.postDelayed(() -> mBinding.episode.scrollToPosition(mEpisodeAdapter.getPosition()), 100); |
|
|
|
|
|