]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/ResetView.mm
Fix the default custom button behaviour for commercial packages. My understanding...
[cydia.git] / UICaboodle / ResetView.mm
index e0db8315e8b9e345b7b71ca7571089c7af13d6de..ffdb0431d45f41efc79e7328ac84d8b520e64c0f 100644 (file)
 
 @end
 
-@implementation UITable (RVBook)
+@implementation UITableView (RVBook)
 
 - (void) resetViewAnimated:(BOOL)animated {
-    [self selectRow:-1 byExtendingSelection:NO withFade:animated];
+    //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
+    if (NSIndexPath *path = [self indexPathForSelectedRow])
+        [self deselectRowAtIndexPath:path animated:animated];
 }
 
 - (void) clearView {
-    [self clearAllData];
-}
-
-@end
-
-@implementation UISectionList (RVBook)
-
-- (void) resetViewAnimated:(BOOL)animated {
-    [[self table] resetViewAnimated:animated];
-}
-
-- (void) clearView {
-    [[self table] clearView];
+    //XXX:[[self table] clearView];
 }
 
 @end