From c42e5478c9a10b99ebca0f442845386d63f5d3ee Mon Sep 17 00:00:00 2001 From: Eilionoir Tunnicliff Date: Sun, 5 Feb 2023 16:54:53 -0500 Subject: [PATCH] Revert "(Untested) Fix(UI): broken UI init in compact iPhones" Changed the issue from UI not initializing (which affects all devices) to UI not initializing (on 5.5" and bigger) and just not working at all (on 4.7" and smaller) @khanhduytran0 --- Natives/LauncherMenuViewController.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Natives/LauncherMenuViewController.m b/Natives/LauncherMenuViewController.m index 402befe3..3f7b406f 100644 --- a/Natives/LauncherMenuViewController.m +++ b/Natives/LauncherMenuViewController.m @@ -108,7 +108,7 @@ indicatorStyle = UIActivityIndicatorViewStyleMedium; } else { indicatorStyle = UIActivityIndicatorViewStyleGray; - } + } UIActivityIndicatorView *toolbarIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:indicatorStyle]; [toolbarIndicator startAnimating]; self.toolbarItems = @[ @@ -133,10 +133,7 @@ [self updateAccountInfo]; - dispatch_async(dispatch_get_main_queue(), ^(void){ - [self tableView:self.tableView didSelectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; - [self restoreHighlightedSelection]; - }); + [self tableView:self.tableView didSelectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; if (!getEntitlementValue(@"dynamic-codesigning")) { if (isJITEnabled(false)) { @@ -155,7 +152,7 @@ - (void)restoreHighlightedSelection { // workaround while investigating for issue - if (self.splitViewController.viewControllers.count < 2 || contentNavigationController.viewControllers.count == 0) return; + if (self.splitViewController.viewControllers.count < 2) return; // Restore the selected row when the view appears again int index = [self.options indexOfObject:[contentNavigationController viewControllers][0]];