This commit is contained in:
Romain Vimont 2025-04-16 13:26:40 +08:00 committed by GitHub
commit 3f258a6815
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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