Skip to content

Commit

Permalink
Update TiUIApplicationShortcutsProxy.m
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jan 14, 2019
1 parent d586ed4 commit c0f2a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iphone/Classes/TiUIApplicationShortcutsProxy.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2018 by Appcelerator, Inc. All Rights Reserved.
* Copyright (c) 2018-present by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
Expand Down Expand Up @@ -144,7 +144,7 @@ - (void)removeDynamicShortcut:(id)identifier
NSMutableArray *shortcuts = (NSMutableArray *)[UIApplication sharedApplication].shortcutItems;
NSMutableIndexSet *shortcutsIndicesToDelete = [[NSMutableIndexSet alloc] init];

[shortcuts enumerateObjectsUsingBlock:^(UIApplicationShortcutItem * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
[shortcuts enumerateObjectsUsingBlock:^(UIApplicationShortcutItem *_Nonnull obj, NSUInteger idx, BOOL *_Nonnull stop) {
if ([obj.type isEqualToString:key]) {
[shortcutsIndicesToDelete addIndex:idx];
}
Expand Down

0 comments on commit c0f2a53

Please sign in to comment.