Some fixes

This commit is contained in:
Thomas 2020-11-18 17:24:18 +01:00
parent acba219e44
commit dbd068d95f
1 changed files with 2 additions and 1 deletions

View File

@ -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();