diff --git a/app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java b/app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java index 2be1e8a47..92566a387 100644 --- a/app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java +++ b/app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java @@ -817,7 +817,7 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo private void exitFullscreen() { if (!isFullscreen()) return; - setRequestedOrientation(isLand() ? ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE : ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT); + setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_USER); mBinding.episode.scrollToPosition(mEpisodeAdapter.getPosition()); mBinding.control.full.setVisibility(View.VISIBLE); mBinding.video.setLayoutParams(mFrameParams); diff --git a/app/src/mobile/java/com/fongmi/android/tv/ui/custom/dialog/EpisodeGridDialog.java b/app/src/mobile/java/com/fongmi/android/tv/ui/custom/dialog/EpisodeGridDialog.java index ede0080f8..d8c1e216c 100644 --- a/app/src/mobile/java/com/fongmi/android/tv/ui/custom/dialog/EpisodeGridDialog.java +++ b/app/src/mobile/java/com/fongmi/android/tv/ui/custom/dialog/EpisodeGridDialog.java @@ -67,13 +67,14 @@ public class EpisodeGridDialog extends BaseDialog { private void setSpanCount() { int total = 0; + int row = Product.isPad() ? 5 : 10; for (Episode item : episodes) total += item.getName().length(); int offset = (int) Math.ceil((double) total / episodes.size()); if (offset >= 12) spanCount = 1; else if (offset >= 8) spanCount = 2; else if (offset >= 4) spanCount = 3; else if (offset >= 2) spanCount = 4; - itemCount = spanCount * (Product.isPad() ? 5 : 10); + itemCount = spanCount * row; } private void setTitles() { diff --git a/app/src/mobile/res/layout-sw600dp/activity_video.xml b/app/src/mobile/res/layout-sw600dp/activity_video.xml index 40e029811..ae98c1780 100644 --- a/app/src/mobile/res/layout-sw600dp/activity_video.xml +++ b/app/src/mobile/res/layout-sw600dp/activity_video.xml @@ -15,8 +15,8 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/mobile/res/layout-sw600dp/view_control_vod.xml b/app/src/mobile/res/layout-sw600dp/view_control_vod.xml new file mode 100644 index 000000000..75f0f8b22 --- /dev/null +++ b/app/src/mobile/res/layout-sw600dp/view_control_vod.xml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file