]> git.saurik.com Git - cydia.git/commitdiff
Also move ListController title support to CyteKit.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Mar 2017 11:07:43 +0000 (03:07 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Mar 2017 11:07:43 +0000 (03:07 -0800)
CyteKit/ListController.h
CyteKit/ListController.mm
MobileCydia.mm

index b9b8022c7b4d704e9be6f9cc7863a799fba54ce5..a71139fe6920a151ee27e2759e78e8d21c15f0c0 100644 (file)
@@ -28,6 +28,8 @@
 
 @interface CyteListController : CyteViewController
 
+- (id) initWithTitle:(NSString *)title;
+
 - (bool) shouldYield;
 - (void) loadView;
 - (void) _reloadData;
index d3c162e9c59e629e712caf9e0cad1c594167a8f7..7d90045427c7908312cdfd3d680917a61108c927 100644 (file)
@@ -130,6 +130,12 @@ static CGFloat CYStatusBarHeight() {
     [self deselectWithAnimation:animated];
 }
 
+- (id) initWithTitle:(NSString *)title {
+    if ((self = [super init]) != nil) {
+        [[self navigationItem] setTitle:title];
+    } return self;
+}
+
 - (void) releaseSubviews {
     list_ = nil;
     [super releaseSubviews];
index 3e81b07003e4a675f3c88ba11324e13501b20cf6..bba7233e6f8760e292ef8e02452a45503c9d9f9d 100644 (file)
@@ -5982,7 +5982,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     _H<NSArray> thumbs_;
     std::vector<NSInteger> offset_;
 
-    _H<NSString> title_;
     unsigned reloading_;
 }
 
@@ -6069,10 +6068,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 }
 
 - (id) initWithDatabase:(Database *)database title:(NSString *)title {
-    if ((self = [super init]) != nil) {
+    if ((self = [super initWithTitle:title]) != nil) {
         database_ = database;
-        title_ = [title copy];
-        [[self navigationItem] setTitle:title_];
     } return self;
 }