We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae8caad commit 1502b09Copy full SHA for 1502b09
1 file changed
app/src/main/java/org/schabi/newpipe/player/Player.java
@@ -4242,6 +4242,11 @@ public void onClick(final View v) {
4242
} else if (v.getId() == binding.screenRotationButton.getId()) {
4243
// Only if it's not a vertical video or vertical video but in landscape with locked
4244
// orientation a screen orientation can be changed automatically
4245
+ try {
4246
+ Thread.sleep(50); // don't know why we need this from 4.5.0, but without this it act strange when exiting
4247
+ } catch (InterruptedException e) {
4248
+ e.printStackTrace();
4249
+ }
4250
onScreenRotationButtonClicked();
4251
} else if (v.getId() == binding.switchMute.getId()) {
4252
onMuteUnmuteButtonClicked();
0 commit comments