mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-11 02:28:57 +00:00
Merge eb004b010e
into 939c8e7f68
This commit is contained in:
commit
0b5f3b3091
1 changed files with 4 additions and 0 deletions
|
@ -206,6 +206,10 @@ public final class Device {
|
|||
|
||||
// restore auto-rotate if necessary
|
||||
if (accelerometerRotation) {
|
||||
if (displayId == 0) {
|
||||
// HACK: rotation on the main display often fail on recent Android devices if thawRotation() is called immediately
|
||||
SystemClock.sleep(10);
|
||||
}
|
||||
wm.thawRotation(displayId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue