mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Avoid crashing on iOS 11 betas released before iPhone X
This commit is contained in:
@@ -1371,8 +1371,15 @@ const int FrontViewPositionNone = 0xff;
|
|||||||
|
|
||||||
// These are derived from the primary view controller
|
// These are derived from the primary view controller
|
||||||
if (@available(iOS 11.0, *)) {
|
if (@available(iOS 11.0, *)) {
|
||||||
[self setNeedsUpdateOfHomeIndicatorAutoHidden];
|
// iOS 11 betas (which are still installed in some places :\) crash with
|
||||||
[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
|
// doesNotRecognizeSelector since this wasn't added until after the iPhone X
|
||||||
|
// announcement.
|
||||||
|
if ([self respondsToSelector: @selector(setNeedsUpdateOfHomeIndicatorAutoHidden)]) {
|
||||||
|
[self setNeedsUpdateOfHomeIndicatorAutoHidden];
|
||||||
|
}
|
||||||
|
if ([self respondsToSelector: @selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures)]) {
|
||||||
|
[self setNeedsUpdateOfScreenEdgesDeferringSystemGestures];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user