summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 878cf45..6ca8f69 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6044,8 +6044,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
- (NSArray *) sectionIndexTitlesForTableView:(UITableView *)tableView {
- // XXX: is 20 the most optimal number here?
- return [packages_ count] > 20 ? index_ : nil;
+ return index_;
}
- (NSInteger) tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index {
@@ -6081,6 +6080,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[list_ setRowHeight:73];
[[self view] addSubview:list_];
+ // XXX: is 20 the most optimal number here?
+ [list_ setSectionIndexMinimumDisplayRowCount:20];
+
[(UITableView *) list_ setDataSource:self];
[list_ setDelegate:self];
} return self;