- Fix for crash when deleting

This commit is contained in:
ZaidElkurdi 2015-04-11 17:23:19 -07:00
parent 71a4a4cc47
commit 611764adf4
11 changed files with 12 additions and 6 deletions

View File

@ -0,0 +1 @@
2

View File

@ -1,11 +1,10 @@
Package: com.zaid.assistant+
Name: Assistant+
Depends: libactivator (>= 1.8.3), mobilesubstrate
Version: 1.0.1
Architecture: iphoneos-arm
Description: Assign commands to trigger Activator events from Siri, set up custom replies for Siri, and also use and create plugins for Siri using the Assistant+ plugin framework
Maintainer: Zaid Elkurdi
Author: Zaid Elkurdi
Section: Tweaks
Icon: file:///Applications/AssistantPlusApp.app/Icon.png
Version: 1.0.0-42
Installed-Size: 1592

View File

@ -170,7 +170,10 @@
APActivatorListener *toDelete = [savedListeners objectAtIndex:indexPath.row];
[savedListeners removeObject:toDelete];
[self saveListenersToFile];
[self.listenersTable reloadData];
[self.listenersTable beginUpdates];
[self.listenersTable deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
[self.listenersTable endUpdates];
}
}

View File

@ -141,7 +141,10 @@
APCustomReply *toDelete = [savedReplies objectAtIndex:indexPath.row];
[savedReplies removeObject:toDelete];
[self saveRepliesToFile];
[self.repliesTableView reloadData];
[self.repliesTableView beginUpdates];
[self.repliesTableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
[self.repliesTableView endUpdates];
}
}

View File

@ -1,7 +1,7 @@
Package: com.zaid.assistant+
Name: Assistant+
Depends: libactivator (>= 1.8.3), mobilesubstrate
Version: 1.0.0
Version: 1.0.1
Architecture: iphoneos-arm
Description: Assign commands to trigger Activator events from Siri, set up custom replies for Siri, and also use and create plugins for Siri using the Assistant+ plugin framework
Maintainer: Zaid Elkurdi

Binary file not shown.