From ed54dd8474f11d87423d5b9bb0d72566ddea286a Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sat, 2 Oct 2021 09:28:57 +0700 Subject: [PATCH] @doregon didn't like it, so return to blur-then-terminate but "According to Apple, ~~your app should not terminate on its own~~. Since the user did not hit the Home button, any return to the Home screen gives the user the impression that your app crashed. This is confusing, non-standard behavior and should be avoided." --- Natives/LauncherPreferencesViewController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Natives/LauncherPreferencesViewController.m b/Natives/LauncherPreferencesViewController.m index 82c27c54..def12845 100644 --- a/Natives/LauncherPreferencesViewController.m +++ b/Natives/LauncherPreferencesViewController.m @@ -568,8 +568,11 @@ NSString *lib_zink = @"libOSMesaOverride.dylib"; [blurView setAlpha:0]; [self.view addSubview:blurView]; - [[UIApplication sharedApplication] performSelector:@selector(suspend)]; - exit(0); + [UIView animateWithDuration:0.5 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{ + [blurView setAlpha:1]; + } completion:^(BOOL finished) { + exit(0); + }]; } -(void)instanceDirCont {