diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index 728352c..c7a931b 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -491,6 +491,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd if (b != null) { peertubeInstance = b.getString("peertube_instance", Helper.getLiveInstance(PeertubeActivity.this)); videoUuid = b.getString("video_uuid", null); + setRequestedOrientation(initialOrientation); if (comments != null && comments.size() > 0) { int number = comments.size(); comments.clear(); @@ -569,6 +570,7 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd show_more_content = null; currentCaption = "null"; binding.peertubeDescriptionMore.setVisibility(View.GONE); + if (autoFullscreen && autoPlay) { openFullscreenDialog(); } @@ -994,7 +996,6 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd @Override public void onConfigurationChanged(@NotNull Configuration newConfig) { super.onConfigurationChanged(newConfig); - if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { if (mode != Helper.VIDEO_MODE_WEBVIEW) { openFullscreenDialog();