mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 05:46:03 +00:00
1 parent
10d63f13bd
commit
5e69970af8
11 files changed
+102
-59
No files matched your search
@@ -35,13 +35,6 @@
|
||||
|
||||
@implementation NDNotificationCenterHackery
|
||||
|
||||
+ (UNNotificationCategory*)hackedNotificationCategory{
|
||||
UNNotificationAction *accept=[UNNotificationAction actionWithIdentifier:@"ACCEPT" title:NSLocalizedString(@"Accept", nil) options:0];
|
||||
UNNotificationAction *decline=[UNNotificationAction actionWithIdentifier:@"DECLINE" title:NSLocalizedString(@"Decline", nil) options:0];
|
||||
UNMutableNotificationCategory *category=[UNMutableNotificationCategory categoryWithIdentifier:@"INCOMING_TRANSFERS" actions:@[accept, decline] intentIdentifiers:@[] hiddenPreviewsBodyPlaceholder:@"" options: UNNotificationCategoryOptionCustomDismissAction];
|
||||
return category;
|
||||
}
|
||||
|
||||
+ (void)removeDefaultAction:(UNMutableNotificationContent*) content{
|
||||
content.hasDefaultAction=false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user