From aafdeaf99319a0851f15c3ed17b1a4b4e5718912 Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Fri, 2 Aug 2024 08:15:47 +0700 Subject: [PATCH] Fix[MCDL]: should dismiss download list view before alerting A lot of users have been unable to proceed past 100% download, mostly after fully downloading will get it stuck at 1 byte. I have no idea if it fixes the issue, but it does 2 things: - Dismiss download list view if it's visible, otherwise the JIT alert will not he shown - Change the progress string to Waiting for JIT after completing download --- Natives/LauncherNavigationController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Natives/LauncherNavigationController.m b/Natives/LauncherNavigationController.m index b131e20681..42a5becdbe 100644 --- a/Natives/LauncherNavigationController.m +++ b/Natives/LauncherNavigationController.m @@ -326,6 +326,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N self.progressText.text = progress.localizedAdditionalDescription; if (!progress.finished) return; + [self.progressVC dismissModalViewControllerAnimated:NO]; self.progressViewMain.observedProgress = nil; if (self.task.metadata) { @@ -385,7 +386,7 @@ - (void)invokeAfterJITEnabled:(void(^)(void))handler { return; } - //CADisplayLink *displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(tickJIT)]; + self.progressText.text = localize(@"launcher.wait_jit.title", nil); UIAlertController* alert = [UIAlertController alertControllerWithTitle:localize(@"launcher.wait_jit.title", nil) message:hasTrollStoreJIT ? localize(@"launcher.wait_jit_trollstore.message", nil) : localize(@"launcher.wait_jit.message", nil)