Skip to content

Commit 9ae8e4c

Browse files
committed
Update MTHawkeyeUIClient.m
Fix iOS16 crash.
1 parent 224e712 commit 9ae8e4c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

MTHawkeye/UISkeleton/MTHawkeyeUIClient.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@ - (void)makeKeyAndPresentViewController:(UIViewController *)viewController anima
266266
// Make our window key to correctly handle input.
267267
[self.monitorWindow makeKeyWindow];
268268

269-
// Move the status bar on top of FLEX so we can get scroll to top behavior for taps.
270-
[[self statusWindow] setWindowLevel:self.monitorWindow.windowLevel + 1.0];
271-
272269
// If this app doesn't use view controller based status bar management and we're on iOS 7+,
273270
// make sure the status bar style is UIStatusBarStyleDefault. We don't actully have to check
274271
// for view controller based management because the global methods no-op if that is turned on.
@@ -288,10 +285,6 @@ - (void)resignKeyAndDismissViewControllerAnimated:(BOOL)animated completion:(voi
288285
[previousKeyWindow makeKeyWindow];
289286
[[previousKeyWindow rootViewController] setNeedsStatusBarAppearanceUpdate];
290287

291-
// Restore the status bar window's normal window level.
292-
// We want it above FLEX while a modal is presented for scroll to top, but below FLEX otherwise for exploration.
293-
[[self statusWindow] setWindowLevel:UIWindowLevelStatusBar];
294-
295288
// Restore the stauts bar style if the app is using global status bar management.
296289
[[UIApplication sharedApplication] setStatusBarStyle:self.cachedStatusBarStyle];
297290
}
@@ -302,11 +295,6 @@ - (void)resignKeyAndDismissViewControllerAnimated:(BOOL)animated completion:(voi
302295
}
303296
}
304297

305-
- (UIWindow *)statusWindow {
306-
NSString *statusBarString = [NSString stringWithFormat:@"%@arWindow", @"_statusB"];
307-
return [[UIApplication sharedApplication] valueForKey:statusBarString];
308-
}
309-
310298
// MARK: - MTHFloatingMonitorWindowDelegate
311299
- (BOOL)shouldPointBeHandled:(CGPoint)point {
312300
if (self.floatingWidgetVC.presentedViewController != nil) {

0 commit comments

Comments
 (0)