1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 03:49:55 +08:00

Merge pull request #31845 from frenzibyte/ios-threading-woes

Fix incorrect thread access in recent iOS orientation changes
This commit is contained in:
Dean Herbert
2025-02-10 20:45:19 +09:00
committed by GitHub
Unverified
+2 -2
View File
@@ -41,7 +41,7 @@ namespace osu.iOS
updateOrientation();
}
private void updateOrientation()
private void updateOrientation() => UIApplication.SharedApplication.InvokeOnMainThread(() =>
{
bool iPad = UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad;
var orientation = MobileUtils.GetOrientation(this, (IOsuScreen)ScreenStack.CurrentScreen, iPad);
@@ -60,7 +60,7 @@ namespace osu.iOS
appDelegate.Orientations = null;
break;
}
}
});
protected override UpdateManager CreateUpdateManager() => new MobileUpdateNotifier();