Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
[global] nahhhh let's move back to springboard
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Nov 15, 2015
1 parent 9b74b14 commit fc101f4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#import "HBTSStatusBarAlertServer.h"

@interface HBTSStatusBarAlertServer (Private)

+ (void)sendAlertType:(HBTSStatusBarType)type sender:(NSString *)sender timeout:(NSTimeInterval)timeout;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "HBTSStatusBarAlertServer.h"
#import "HBTSPreferences.h"
#import "../client/HBTSPreferences.h"
#import <Foundation/NSDistributedNotificationCenter.h>

@implementation HBTSStatusBarAlertServer
Expand Down Expand Up @@ -56,7 +56,7 @@ + (void)sendAlertWithIconName:(NSString *)iconName title:(NSString *)title conte

+ (void)sendAlertWithIconName:(NSString *)iconName title:(NSString *)title content:(NSString *)content animatingInDirection:(BOOL)direction timeout:(NSTimeInterval)timeout {
if (timeout == -1) {
timeout = [HBTSPreferences sharedInstance].overlayDisplayDuration;
timeout = ((HBTSPreferences *)[%c(HBTSPreferences) sharedInstance]).overlayDisplayDuration;
}

dispatch_async(dispatch_get_main_queue(), ^{
Expand Down
2 changes: 1 addition & 1 deletion springboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(THEOS)/makefiles/common.mk

TWEAK_NAME = TypeStatus

TypeStatus_FILES = $(wildcard *.xm) $(wildcard *.m)
TypeStatus_FILES = $(wildcard *.xm) $(wildcard *.x) $(wildcard *.m)
TypeStatus_FRAMEWORKS = UIKit
TypeStatus_EXTRA_FRAMEWORKS = Cephei
TypeStatus_CFLAGS = -include ../Global.h
Expand Down
6 changes: 3 additions & 3 deletions springboard/SpringBoard.xm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "HBTSStatusBarIconController.h"
#import "HBTSStatusBarAlertServer.h"
#import "HBTSStatusBarAlertServer+Private.h"
#import "../client/HBTSPreferences.h"
#import "../client/HBTSStatusBarAlertServer.h"
#import "../client/HBTSStatusBarAlertServer+Private.h"
#import <Cephei/HBPreferences.h>
#import <ChatKit/CKEntity.h>
#import <ChatKit/CKDNDList.h>
Expand Down Expand Up @@ -51,7 +51,7 @@ void HBTSShowAlert(HBTSStatusBarType type, NSString *sender, BOOL isTyping) {

switch (notificationType) {
case HBTSNotificationTypeOverlay:
[%c(HBTSStatusBarAlertServer) sendAlertType:type sender:HBTSNameForHandle(sender) timeout:timeout];
[HBTSStatusBarAlertServer sendAlertType:type sender:HBTSNameForHandle(sender) timeout:timeout];
break;

case HBTSNotificationTypeIcon:
Expand Down

0 comments on commit fc101f4

Please sign in to comment.