forked from yaypixxo/CustomNoOlderNotifications
		
	remove need for respring
This commit is contained in:
		@ -1,5 +1,5 @@
 | 
			
		||||
#include "CNONRootListController.h"
 | 
			
		||||
#import <spawn.h>
 | 
			
		||||
//#import <spawn.h>
 | 
			
		||||
 | 
			
		||||
@implementation CNONRootListController
 | 
			
		||||
 | 
			
		||||
@ -13,10 +13,10 @@
 | 
			
		||||
 | 
			
		||||
- (void)respring:(id)sender {
 | 
			
		||||
	[self.view endEditing:YES];
 | 
			
		||||
	[NSThread sleepForTimeInterval:0.5f];
 | 
			
		||||
	/*[NSThread sleepForTimeInterval:0.5f];
 | 
			
		||||
	pid_t pid;
 | 
			
		||||
    const char* args[] = {"killall", "backboardd", NULL};
 | 
			
		||||
    posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
 | 
			
		||||
    posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);*/
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
- (void)openTwitter {
 | 
			
		||||
@ -24,18 +24,22 @@
 | 
			
		||||
 | 
			
		||||
	if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetbot:"]]) {
 | 
			
		||||
		url = [NSURL URLWithString:@"tweetbot:///user_profile/Ra1nPix"];
 | 
			
		||||
	} else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitterrific:"]]) {
 | 
			
		||||
	} 
 | 
			
		||||
	else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitterrific:"]]) {
 | 
			
		||||
		url = [NSURL URLWithString:@"twitterrific:///profile?screen_name=Ra1nPix"];
 | 
			
		||||
	} else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetings:"]]) {
 | 
			
		||||
	} 
 | 
			
		||||
	else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetings:"]]) {
 | 
			
		||||
		url = [NSURL URLWithString:@"tweetings:///user?screen_name=Ra1nPix"];
 | 
			
		||||
	} else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter:"]]) {
 | 
			
		||||
	} 
 | 
			
		||||
	else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter:"]]) {
 | 
			
		||||
		url = [NSURL URLWithString:@"twitter://user?screen_name=Ra1nPix"];
 | 
			
		||||
	} else {
 | 
			
		||||
	} 
 | 
			
		||||
	else {
 | 
			
		||||
		url = [NSURL URLWithString:@"https://mobile.twitter.com/Ra1nPix"];
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
 | 
			
		||||
	[[UIApplication sharedApplication] openURL:url];
 | 
			
		||||
	[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@end
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
ARCHS = arm64
 | 
			
		||||
TARGET = iphone:11.2:11.2
 | 
			
		||||
ARCHS = arm64 arm64e
 | 
			
		||||
TARGET = iphone:10.3:10.3
 | 
			
		||||
 | 
			
		||||
include $(THEOS)/makefiles/common.mk
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								cnonprefs/Resources/.DS_Store
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								cnonprefs/Resources/.DS_Store
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@ -10,25 +10,25 @@
 | 
			
		||||
			<key>default</key>
 | 
			
		||||
			<true/>
 | 
			
		||||
			<key>defaults</key>
 | 
			
		||||
			<string>com.yaypixxo.cnonprefs</string>
 | 
			
		||||
			<string>com.yaypixxo.cnon</string>
 | 
			
		||||
			<key>key</key>
 | 
			
		||||
			<string>enabled</string>
 | 
			
		||||
			<key>label</key>
 | 
			
		||||
			<string>Enable</string>
 | 
			
		||||
			<key>PostNotification</key>
 | 
			
		||||
			<string>com.yaypixxo.cnonprefs/ReloadPrefs</string>
 | 
			
		||||
			<string>com.yaypixxo.cnon/preferences.changed</string>
 | 
			
		||||
		</dict>
 | 
			
		||||
		<dict>
 | 
			
		||||
			<key>cell</key>
 | 
			
		||||
			<string>PSGroupCell</string>
 | 
			
		||||
			<key>footerText</key>
 | 
			
		||||
			<string>Type your custom message or leave blank to hide the text.</string>
 | 
			
		||||
			<string>Type your custom text or leave blank to hide the text</string>
 | 
			
		||||
		</dict>
 | 
			
		||||
		<dict>
 | 
			
		||||
			<key>cell</key>
 | 
			
		||||
			<string>PSEditTextCell</string>
 | 
			
		||||
			<key>defaults</key>
 | 
			
		||||
			<string>com.yaypixxo.cnonprefs</string>
 | 
			
		||||
			<string>com.yaypixxo.cnon</string>
 | 
			
		||||
			<key>default</key>
 | 
			
		||||
			<string></string>
 | 
			
		||||
			<key>key</key>
 | 
			
		||||
@ -36,7 +36,7 @@
 | 
			
		||||
			<key>placeholder</key>
 | 
			
		||||
			<string>custom text here</string>
 | 
			
		||||
			<key>PostNotification</key>
 | 
			
		||||
			<string>com.yaypixxo.cnonprefs/ReloadPrefs</string>
 | 
			
		||||
			<string>com.yaypixxo.cnon/preferences.changed</string>
 | 
			
		||||
		</dict>
 | 
			
		||||
		<dict>
 | 
			
		||||
			<key>cell</key>
 | 
			
		||||
@ -44,13 +44,13 @@
 | 
			
		||||
			<key>action</key>
 | 
			
		||||
			<string>respring</string>
 | 
			
		||||
			<key>label</key>
 | 
			
		||||
			<string>Respring</string>
 | 
			
		||||
			<string>Apply</string>
 | 
			
		||||
		</dict>
 | 
			
		||||
		<dict>
 | 
			
		||||
			<key>cell</key>
 | 
			
		||||
			<string>PSGroupCell</string>
 | 
			
		||||
			<key>label</key>
 | 
			
		||||
			<string>Follow me</string>
 | 
			
		||||
			<string>Follow me on Twitter</string>
 | 
			
		||||
		</dict>
 | 
			
		||||
		<dict>
 | 
			
		||||
			<key>action</key>
 | 
			
		||||
@ -64,6 +64,6 @@
 | 
			
		||||
		</dict>
 | 
			
		||||
	</array>
 | 
			
		||||
	<key>title</key>
 | 
			
		||||
	<string>CNON</string>
 | 
			
		||||
	<string>CustomNoOlderNotifications</string>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB  | 
		Reference in New Issue
	
	Block a user