mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Cherry-pick various improvements
This commit is contained in:
@@ -58,11 +58,15 @@ public final class SharedDisplayLinkDriver {
|
||||
self.update()
|
||||
})
|
||||
|
||||
switch UIApplication.shared.applicationState {
|
||||
case .active:
|
||||
if Bundle.main.bundlePath.hasSuffix(".appex") {
|
||||
self.isInForeground = true
|
||||
default:
|
||||
self.isInForeground = false
|
||||
} else {
|
||||
switch UIApplication.shared.applicationState {
|
||||
case .active:
|
||||
self.isInForeground = true
|
||||
default:
|
||||
self.isInForeground = false
|
||||
}
|
||||
}
|
||||
|
||||
self.update()
|
||||
|
||||
Reference in New Issue
Block a user