Comments (1)
Tried to use the code from OS Experience to implement a fix for this. However it doesn't do anything on my 5S :/
SpringBoard.h
@protocol BSXPCCoding
@end
@interface BSMachPortRight : NSObject <BSXPCCoding, NSSecureCoding>
@end
@interface BSMachPortSendRight : BSMachPortRight <NSCopying>
- (unsigned int)sendRight;
@end
@interface SBApplication : NSObject
- (FBScene*)mainScene;
- (NSString*)bundleIdentifier;
- (BOOL)isRunning;
- (NSString*)displayName;
- (BOOL)hasHiddenTag;
- (BOOL)isActivating;
@property(retain, nonatomic) BSMachPortSendRight *xpcEventPort;
- (void)rotateToInterfaceOrientation:(int)orientation;//New
@end
Tweak.xm add #import <GraphicsServices/GraphicsServices.h>
%hook SBApplication
%new
- (void)rotateToInterfaceOrientation:(int)orientation{
struct GSOrientationEvent {
GSEventRecord record;
GSDeviceOrientationInfo orientationInfo;
} event;
bzero(&event, sizeof(event));
event.record.type = kGSEventDeviceOrientationChanged;
event.record.flags = (GSEventFlags)0;
event.record.infoSize = 4;
event.orientationInfo.orientation = orientation;
GSSendEvent((GSEventRecord*)&event, (mach_port_t)[[self xpcEventPort] sendRight]);
}
…
%new
- (void)appcenter_startBackgroundingWithCompletion:(void (^)(BOOL))completion {
if (![self isRunning]) {
[[%c(FBSSystemService) sharedService] openApplication:[self bundleIdentifier] options:@{ FBSOpenApplicationOptionKeyActivateSuspended : @true } withResult:^{
[self appcenter_setBackgrounded:false withCompletion:completion];
}];
} else {
[self appcenter_setBackgrounded:false withCompletion:completion];
}
UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
[self rotateToInterfaceOrientation:orientation];
}
Not working but also not crashing. Presumably the GraphicsServices framework has changed. I have no clue about that so if you have any knowledge on this left from OSE maybe you can pick it up from here. 😄
EDIT: Here's a link to OSE code, rotation function is in line 739: https://github.com/eswick/osexperience/blob/master/Hooks.xm
from appcenter.
Related Issues (20)
- First run alert is shown on every respring HOT 1
- Update darkening view mask when search cancelled
- Animate darkening view when the platter moves HOT 2
- Keep foreground app in search results
- Refresh app grid based on app switcher on every CC open and search dismiss HOT 1
- Add compatibility with horseshoe HOT 2
- App Center page opens twice after app launch. HOT 5
- Compiling error. HOT 2
- Some UI does not change colors with Noctis HOT 1
- Add favorites view or row HOT 2
- Add BioProtect checks before launching apps and app pages HOT 1
- Add "remove all pages" button to settings HOT 2
- App Icons for the pages do not always appear on the lock screen
- Update Description for Version 1.0.5
- Platter doesn't disappear behind app page on iOS 10.1
- Seemingly unpredictable crash when loading the appcenter model HOT 1
- Tweak Compilation Error HOT 1
- SpringBoard crashes when Control Center is pulled up with App Center enabled (User reported) HOT 1
- Crash because uninstalled app remains selected as page
- Bluetooth keyboard keystrokes don't get sent to the app pages correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter.