1
0
mirror of https://framagit.org/tom79/fedilab-tube synced 2025-02-12 18:10:35 +01:00
This commit is contained in:
Thomas 2020-12-12 14:39:20 +01:00
parent 842ab914a4
commit 668e41bc9b

View File

@ -1553,10 +1553,6 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
if (getResources().getConfiguration().orientation != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
setRequestedOrientationCustom(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
} else {
if (getResources().getConfiguration().orientation != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) {
setRequestedOrientationCustom(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
}
} else {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,