Skip to content

Commit

Permalink
Use _embeddedScreenStatusBarWindow for iOS versions that only have it
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Apr 11, 2024
1 parent 6568e68 commit 65e5c6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ inline BOOL flexAlreadyLoaded() {
- (BOOL)_canShowWhileLocked {
return YES;
}

- (UIWindow *)statusWindow {
@try {
return [UIApplication.sharedApplication valueForKey:@"_embeddedScreenStatusBarWindow"];
} @catch (NSException *e) {
return [UIApplication.sharedApplication valueForKey:@"_statusBarWindow"];
}
}
%end

%hook _UISheetPresentationController
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: com.pantsthief.flexing
Name: FLEXing
Pre-Depends: firmware (>= 8.0)
Version: 1.5.0
Version: 1.5.1
Architecture: iphoneos-arm
Description: Open FLEX anywhere!
Maintainer: Tanner Bennett <[email protected]>
Expand Down

0 comments on commit 65e5c6a

Please sign in to comment.