@@ -266,9 +266,6 @@ - (void)makeKeyAndPresentViewController:(UIViewController *)viewController anima
266
266
// Make our window key to correctly handle input.
267
267
[self .monitorWindow makeKeyWindow ];
268
268
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
-
272
269
// If this app doesn't use view controller based status bar management and we're on iOS 7+,
273
270
// make sure the status bar style is UIStatusBarStyleDefault. We don't actully have to check
274
271
// 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
288
285
[previousKeyWindow makeKeyWindow ];
289
286
[[previousKeyWindow rootViewController ] setNeedsStatusBarAppearanceUpdate ];
290
287
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
-
295
288
// Restore the stauts bar style if the app is using global status bar management.
296
289
[[UIApplication sharedApplication ] setStatusBarStyle: self .cachedStatusBarStyle];
297
290
}
@@ -302,11 +295,6 @@ - (void)resignKeyAndDismissViewControllerAnimated:(BOOL)animated completion:(voi
302
295
}
303
296
}
304
297
305
- - (UIWindow *)statusWindow {
306
- NSString *statusBarString = [NSString stringWithFormat: @" %@ arWindow" , @" _statusB" ];
307
- return [[UIApplication sharedApplication ] valueForKey: statusBarString];
308
- }
309
-
310
298
// MARK: - MTHFloatingMonitorWindowDelegate
311
299
- (BOOL )shouldPointBeHandled : (CGPoint)point {
312
300
if (self.floatingWidgetVC .presentedViewController != nil ) {
0 commit comments