This commit is contained in:
Romain Vimont 2026-04-16 21:16:05 +01:00 committed by GitHub
commit 335606ed9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,6 +208,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);
}
}