forked from yaypixxo/CustomNoOlderNotifications
		
	yaypwdpwd no respring needed
This commit is contained in:
		
							
								
								
									
										6
									
								
								Tweak.xm
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Tweak.xm
									
									
									
									
									
								
							@ -1,12 +1,12 @@
 | 
				
			|||||||
// respring function
 | 
					// respring function
 | 
				
			||||||
@interface FBSystemService : NSObject
 | 
					/*@interface FBSystemService : NSObject
 | 
				
			||||||
+(id)sharedInstance;
 | 
					+(id)sharedInstance;
 | 
				
			||||||
-(void)exitAndRelaunch:(bool)arg1;
 | 
					-(void)exitAndRelaunch:(bool)arg1;
 | 
				
			||||||
@end
 | 
					@end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void RespringDevice() {
 | 
					static void RespringDevice() {
 | 
				
			||||||
    [[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES];
 | 
					    [[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES];
 | 
				
			||||||
}
 | 
					}*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// headers
 | 
					// headers
 | 
				
			||||||
@interface SBUILegibilityLabel : UIView
 | 
					@interface SBUILegibilityLabel : UIView
 | 
				
			||||||
@ -67,5 +67,5 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
 | 
				
			|||||||
    CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);
 | 
					    CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // respring notification listener
 | 
					    // respring notification listener
 | 
				
			||||||
    CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.cnon/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
 | 
					    //CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.cnon/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -36,9 +36,9 @@
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// send respring notification
 | 
					// send respring notification
 | 
				
			||||||
-(void)saveTapped {
 | 
					-(void)apply {
 | 
				
			||||||
	[self.view endEditing:YES];
 | 
						[self.view endEditing:YES];
 | 
				
			||||||
	CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES);
 | 
						//CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@end
 | 
					@end
 | 
				
			||||||
 | 
				
			|||||||
@ -42,9 +42,9 @@
 | 
				
			|||||||
			<key>cell</key>
 | 
								<key>cell</key>
 | 
				
			||||||
			<string>PSButtonCell</string>
 | 
								<string>PSButtonCell</string>
 | 
				
			||||||
			<key>action</key>
 | 
								<key>action</key>
 | 
				
			||||||
			<string>saveTapped</string>
 | 
								<string>apply</string>
 | 
				
			||||||
			<key>label</key>
 | 
								<key>label</key>
 | 
				
			||||||
			<string>Respring</string>
 | 
								<string>Apply</string>
 | 
				
			||||||
		</dict>
 | 
							</dict>
 | 
				
			||||||
		<dict>
 | 
							<dict>
 | 
				
			||||||
			<key>cell</key>
 | 
								<key>cell</key>
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user