Skip to content

Commit 763db1c

Browse files
samsymonsgaborszakacs
authored andcommitted
Move displayBlankSnapshotWindow into applicationDidEnterBackground. (duckduckgo#773)
This will prevent the blank window from appearing in cases where something has caused the app to resign active, but it is still in the foreground. One example is system-level Apple ID authentication on icloud.com.
1 parent b6cb936 commit 763db1c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

DuckDuckGo/AppDelegate.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
175175
showKeyboardIfSettingOn = false
176176
}
177177

178-
func applicationWillResignActive(_ application: UIApplication) {
179-
displayBlankSnapshotWindow()
180-
}
181-
182178
private func onApplicationLaunch(_ application: UIApplication) {
183179
beginAuthentication()
184180
initialiseBackgroundFetch(application)
@@ -196,6 +192,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
196192
}
197193

198194
func applicationDidEnterBackground(_ application: UIApplication) {
195+
displayBlankSnapshotWindow()
199196
autoClear?.applicationDidEnterBackground()
200197
}
201198

0 commit comments

Comments
 (0)