Pārlūkot izejas kodu

added more comments

tags/v1.0.0
Viggo Lekdorf pirms 4 gadiem
vecāks
revīzija
dec543bc95
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      Tweak.x
  2. +4
    -0
      kageprefs/KgeRootListController.m

+ 2
- 0
Tweak.x Parādīt failu

@@ -17,6 +17,7 @@ static void RespringDevice() {
static NSString *nsDomainString = @"com.yaypixxo.kage";
static NSString *nsNotificationString = @"com.yaypixxo.kage/preferences.changed";

// declare pref things here (switches, buttons, etc.)
static BOOL enabled;
static BOOL hideQuickActionsBG;
static BOOL gridSwitcher;
@@ -123,6 +124,7 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer,
%end
// SHOW TIME IN LS STATUSBAR END //

// LISTENERS
%ctor {
// prefs changed listener
notificationCallback(NULL, NULL, NULL, NULL, NULL);

+ 4
- 0
kageprefs/KgeRootListController.m Parādīt failu

@@ -13,6 +13,7 @@
-(void)openTwitter {
NSURL *url;

// check which of these apps are installed
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetbot:"]]) {
url = [NSURL URLWithString:@"tweetbot:///user_profile/Ra1nPix"];
}
@@ -29,9 +30,12 @@
url = [NSURL URLWithString:@"https://mobile.twitter.com/Ra1nPix"];
}

// open my profile in the app chosen above
// if you're compiling with an iOS 10 or lower sdk you can leave out options:@{} and completionHandler:nil
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}

// send respring notification
-(void)saveTapped {
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.kage/respring"), NULL, NULL, YES);
}

Notiek ielāde…
Atcelt
Saglabāt