From dbd068d95f271b8b473ef0355816dd021b47ad7c Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 18 Nov 2020 17:24:18 +0100 Subject: [PATCH] Some fixes --- .../main/java/app/fedilab/fedilabtube/PeertubeActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();