Skip to content

Commit

Permalink
1.2.6
Browse files Browse the repository at this point in the history
- fix alignment on iOS 12
  • Loading branch information
Muirey03 committed Nov 13, 2019
1 parent c12cd61 commit 7fa11f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
11 changes: 1 addition & 10 deletions Source/RebootButtonController.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

#define prefsDict [[NSUserDefaults alloc] initWithSuiteName:@"com.muirey03.powermoduleprefs"]

@interface FBSystemService : NSObject
+(id)sharedInstance; //existing presence of object
-(void)shutdownAndReboot:(BOOL)arg1; //shutting down with the option to reboot (the boolean value)
-(void)exitAndRelaunch:(BOOL)arg1; //restart the FrontBoard process (thus restarting SpringBoard as well; the boolean value has no change, the process restarts anyway)
-(void)nonExistantMethod; //fake method to crash in a safe way, loading SafeMode
@end

@implementation RebootButtonController

//here is where we set the width of the CCUILabeledRoundButton - the width of CCUIRoundButton is set automatically so we just use that to set the width of the CCUILabeledRoundButton
Expand All @@ -23,8 +16,7 @@ -(void)viewDidLayoutSubviews
{
//constrain:
[[self buttonContainer] buttonView].translatesAutoresizingMaskIntoConstraints = NO;
[[[self buttonContainer] buttonView].leadingAnchor constraintEqualToAnchor:[self buttonContainer].leadingAnchor].active = YES;
[[[self buttonContainer] buttonView].trailingAnchor constraintEqualToAnchor:[self buttonContainer].trailingAnchor].active = YES;
[[[self buttonContainer] buttonView].centerXAnchor constraintEqualToAnchor:[self buttonContainer].centerXAnchor].active = YES;
//get the width of the CCUIRoundButton
CGFloat bWidth = [[self buttonContainer] buttonView].frame.size.width;
//this is the smaller distance (from the left of the module to the left of the top-left button)
Expand Down Expand Up @@ -71,7 +63,6 @@ -(void)buttonTapped:(id)arg1

-(void)reboot
{
//[[objc_getClass("FBSystemService") sharedInstance] shutdownAndReboot:YES];
pid_t pid;
int status;
const char* args[] = {"mobileldrestart", NULL, NULL, NULL};
Expand Down
3 changes: 1 addition & 2 deletions Source/RespringButtonController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ -(void)viewDidLayoutSubviews
{
//constrain:
[[self buttonContainer] buttonView].translatesAutoresizingMaskIntoConstraints = NO;
[[[self buttonContainer] buttonView].leadingAnchor constraintEqualToAnchor:[self buttonContainer].leadingAnchor].active = YES;
[[[self buttonContainer] buttonView].trailingAnchor constraintEqualToAnchor:[self buttonContainer].trailingAnchor].active = YES;
[[[self buttonContainer] buttonView].centerXAnchor constraintEqualToAnchor:[self buttonContainer].centerXAnchor].active = YES;
//get the width of the CCUIRoundButton
CGFloat bWidth = [[self buttonContainer] buttonView].frame.size.width;
//this is the smaller distance (from the left of the module to the left of the top-left button)
Expand Down
3 changes: 1 addition & 2 deletions Source/SafemodeButtonController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ -(void)viewDidLayoutSubviews
{
//constrain:
[[self buttonContainer] buttonView].translatesAutoresizingMaskIntoConstraints = NO;
[[[self buttonContainer] buttonView].leadingAnchor constraintEqualToAnchor:[self buttonContainer].leadingAnchor].active = YES;
[[[self buttonContainer] buttonView].trailingAnchor constraintEqualToAnchor:[self buttonContainer].trailingAnchor].active = YES;
[[[self buttonContainer] buttonView].centerXAnchor constraintEqualToAnchor:[self buttonContainer].centerXAnchor].active = YES;
//get the width of the CCUIRoundButton
CGFloat bWidth = [[self buttonContainer] buttonView].frame.size.width;
//this is the smaller distance (from the left of the module to the left of the top-left button)
Expand Down
3 changes: 1 addition & 2 deletions Source/UICacheButtonController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ -(void)viewDidLayoutSubviews
{
//constrain:
[[self buttonContainer] buttonView].translatesAutoresizingMaskIntoConstraints = NO;
[[[self buttonContainer] buttonView].leadingAnchor constraintEqualToAnchor:[self buttonContainer].leadingAnchor].active = YES;
[[[self buttonContainer] buttonView].trailingAnchor constraintEqualToAnchor:[self buttonContainer].trailingAnchor].active = YES;
[[[self buttonContainer] buttonView].centerXAnchor constraintEqualToAnchor:[self buttonContainer].centerXAnchor].active = YES;
//get the width of the CCUIRoundButton
CGFloat bWidth = [[self buttonContainer] buttonView].frame.size.width;
//this is the smaller distance (from the left of the module to the left of the top-left button)
Expand Down
2 changes: 1 addition & 1 deletion Source/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: com.muirey03.powermodule
Name: PowerModule
Depends: mobilesubstrate, com.opa334.ccsupport, preferenceloader
Version: 1.2.5
Version: 1.2.6
Architecture: iphoneos-arm
Description: Group different utility actions into one control center module (iOS 11 only)
Author: Muirey03
Expand Down

0 comments on commit 7fa11f2

Please sign in to comment.