mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 21:40:08 +00:00
Avoid crashing on iOS 11 betas released before iPhone X
This commit is contained in:
1 parent
3bc9e050f1
commit
d7ee0916e9
1 file changed
+9
-2
@@ -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