11#import " SettingsViewController.h"
22
3- @interface BHSettingsViewController ()
3+ @interface SCISettingsViewController ()
44@property (nonatomic , assign ) BOOL hasDynamicSpecifiers;
55@property (nonatomic , retain ) NSMutableDictionary *dynamicSpecifiers;
66@end
77
8- @implementation BHSettingsViewController
8+ @implementation SCISettingsViewController
99- (instancetype )init {
1010 self = [super init ];
1111 if (self) {
12- self.title = @" BHInsta " ;
12+ self.title = @" SCInsta " ;
1313 [self .navigationController.navigationBar setPrefersLargeTitles: false ];
1414 }
1515 return self;
@@ -35,7 +35,7 @@ - (PSSpecifier *)newSwitchCellWithTitle:(NSString *)titleText detailTitle:(NSStr
3535 [switchCell setProperty: keyText forKey: @" key" ];
3636 [switchCell setProperty: keyText forKey: @" id" ];
3737 [switchCell setProperty: @YES forKey: @" big" ];
38- [switchCell setProperty: BHSwitchTableCell .class forKey: @" cellClass" ];
38+ [switchCell setProperty: SCISwitchTableCell .class forKey: @" cellClass" ];
3939 [switchCell setProperty: NSBundle .mainBundle.bundleIdentifier forKey: @" defaults" ];
4040 [switchCell setProperty: @(defValue) forKey: @" default" ];
4141 [switchCell setProperty: NSStringFromSelector (changeAction) forKey: @" switchAction" ];
@@ -51,7 +51,7 @@ - (PSSpecifier *)newButtonCellWithTitle:(NSString *)titleText detailTitle:(NSStr
5151
5252 [buttonCell setButtonAction: action];
5353 [buttonCell setProperty: @YES forKey: @" big" ];
54- [buttonCell setProperty: BHButtonTableViewCell .class forKey: @" cellClass" ];
54+ [buttonCell setProperty: SCIButtonTableViewCell .class forKey: @" cellClass" ];
5555 if (detailText != nil ){
5656 [buttonCell setProperty: detailText forKey: @" subtitle" ];
5757 }
@@ -142,10 +142,10 @@ - (NSArray *)specifiers {
142142 [self newSwitchCellWithTitle: @" Enable FLEX gesture" detailTitle: @" Allows you to hold 5 fingers on the screen to open the FLEX explorer" key: @" flex_instagram" defaultValue: false changeAction: @selector (FLEXAction: )],
143143
144144 // Section 8: Credits
145- [self newSectionWithTitle: @" Credits" footer: [NSString stringWithFormat: @" BHInsta %@ " , BHIVersionString ]],
145+ [self newSectionWithTitle: @" Credits" footer: [NSString stringWithFormat: @" SCInsta %@ " , SCIVersionString ]],
146146 [self newHBTwitterCellWithTitle: @" Maintainer" twitterUsername: @" SoVeryCuul" customAvatarURL: @" https://unavatar.io/twitter/SoVeryCuul" ],
147147 [self newHBTwitterCellWithTitle: @" Original Author" twitterUsername: @" BandarHL" customAvatarURL: @" https://unavatar.io/twitter/BandarHL" ],
148- [self newHBLinkCellWithTitle: @" View Repo" detailTitle: @" View the tweak's source code on GitHub" url: @" https://github.com/SoCuul/BHInsta " ]
148+ [self newHBLinkCellWithTitle: @" View Repo" detailTitle: @" View the tweak's source code on GitHub" url: @" https://github.com/SoCuul/SCInsta " ]
149149 ]];
150150
151151 [self collectDynamicSpecifiersFromArray: _specifiers];
@@ -267,7 +267,7 @@ - (void)setPreferenceValue:(id)value specifier:(PSSpecifier *)specifier {
267267 NSUserDefaults *Prefs = [NSUserDefaults standardUserDefaults ];
268268 [Prefs setValue: value forKey: [specifier identifier ]];
269269
270- NSLog (@" [BHInsta ] Set user default. Key: %@ | Value: %@ " , [specifier identifier ], value);
270+ NSLog (@" [SCInsta ] Set user default. Key: %@ | Value: %@ " , [specifier identifier ], value);
271271
272272 if (self.hasDynamicSpecifiers ) {
273273 NSString *specifierID = [specifier propertyForKey: PSIDKey];
@@ -288,16 +288,16 @@ - (void)FLEXAction:(UISwitch *)sender {
288288 if (sender.isOn ) {
289289 [[objc_getClass (" FLEXManager" ) sharedManager ] showExplorer ];
290290
291- NSLog (@" [BHInsta ] FLEX explorer: Enabled" );
291+ NSLog (@" [SCInsta ] FLEX explorer: Enabled" );
292292 } else {
293293 [[objc_getClass (" FLEXManager" ) sharedManager ] hideExplorer ];
294294
295- NSLog (@" [BHInsta ] FLEX explorer: Disabled" );
295+ NSLog (@" [SCInsta ] FLEX explorer: Disabled" );
296296 }
297297}
298298@end
299299
300- @implementation BHButtonTableViewCell
300+ @implementation SCIButtonTableViewCell
301301- (instancetype )initWithStyle : (UITableViewCellStyle)style reuseIdentifier : (NSString *)reuseIdentifier specifier : (PSSpecifier *)specifier {
302302 self = [super initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: reuseIdentifier specifier: specifier];
303303 if (self) {
@@ -312,7 +312,7 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
312312
313313@end
314314
315- @implementation BHSwitchTableCell
315+ @implementation SCISwitchTableCell
316316- (instancetype )initWithStyle : (UITableViewCellStyle)style reuseIdentifier : (NSString *)reuseIdentifier specifier : (PSSpecifier *)specifier {
317317 if ((self = [super initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: reuseIdentifier specifier: specifier])) {
318318 NSString *subTitle = [specifier.properties[@" subtitle" ] copy ];
0 commit comments