From d2554266b3f6c19e2b776ee63a43cb99f77bf6e7 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Wed, 3 May 2023 01:54:22 +0100 Subject: [PATCH] Revert "IOS7: Implement new delegate methods replacing deprecated ones" This reverts commit 46d6a76b8ea36998665edf01a1e6fc989f255514. The commit broke saving and restoring state when compiling with SDK 13 or above and running on iOS 12 or below. The functions to save/restore were no longer called. --- backends/platform/ios7/ios7_app_delegate.mm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backends/platform/ios7/ios7_app_delegate.mm b/backends/platform/ios7/ios7_app_delegate.mm index af682585205..517e509e96c 100644 --- a/backends/platform/ios7/ios7_app_delegate.mm +++ b/backends/platform/ios7/ios7_app_delegate.mm @@ -110,19 +110,11 @@ [_view saveApplicationState]; } -#ifdef __IPHONE_13_2 -- (BOOL)application:(UIApplication *)application shouldSaveSecureApplicationState:(NSCoder *)coder { -#else - (BOOL)application:(UIApplication *)application shouldSaveApplicationState:(NSCoder *)coder { -#endif return YES; } -#ifdef __IPHONE_13_2 -- (BOOL)application:(UIApplication *)application shouldRestoreSecureApplicationState:(NSCoder *)coder { -#else - (BOOL)application:(UIApplication *)application shouldRestoreApplicationState:(NSCoder *)coder { -#endif return YES; }