Skip to content

Commit

Permalink
App Version Spoofer patch
Browse files Browse the repository at this point in the history
I don’t think the functionality was active at all. So I utilized the kAppVersionSpoofer key
  • Loading branch information
arichornlover authored Apr 1, 2024
1 parent bea5a28 commit c702d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controllers/OtherOptionsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.detailTextLabel.textColor = [UIColor whiteColor];
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
UISwitch *appVersionSpoofer;
if (indexPath.row == 0) {
cell.textLabel.text = LOC(@"IPAD_LAYOUT");
CREATE_SWITCH(enableiPadStyleOniPhone, toggleEnableiPadStyleOniPhone, @"kEnableiPadStyleOniPhone");
Expand Down Expand Up @@ -153,6 +152,7 @@ - (void)showVersionAlert {
[alert addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
textField.placeholder = LOC(@"ENTER_CUSTOM_APP_VERSION");
textField.text = self.customAppVersion;
textField.enabled = BOOL_FOR_KEY(@"kAppVersionSpoofer");
}];
UIAlertAction *resetAction = [UIAlertAction actionWithTitle:LOC(@"RESET_TEXT") style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
UITextField *textField = alert.textFields.firstObject;
Expand Down

1 comment on commit c702d28

@arichornlover
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the previous betas of YouTube Reborn v5, the button was not letting anyone tap on it. Which was odd since I specifically made that a button.
also you might’ve wondering why I changed and moved the whole text field into UIAlertController Menu.
because it wasn’t letting anyone save it when they type it in. I wanted to help improve this before I ever release Reborn v5.

Please sign in to comment.