mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-02-12 18:10:35 +01:00
Fix issue #122
This commit is contained in:
parent
842ab914a4
commit
668e41bc9b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user