mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 03:21:29 +00:00
Fix gradient background flickering on chat switch when loading
This commit is contained in:
parent
9c1c0b58dc
commit
0908a3cf63
@ -1,6 +1,7 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import UIKit
|
import UIKit
|
||||||
import AsyncDisplayKit
|
import AsyncDisplayKit
|
||||||
|
import SwiftSignalKit
|
||||||
import Display
|
import Display
|
||||||
import TelegramCore
|
import TelegramCore
|
||||||
import TelegramPresentationData
|
import TelegramPresentationData
|
||||||
@ -207,7 +208,9 @@ final class ChatLoadingPlaceholderNode: ASDisplayNode {
|
|||||||
self.borderNode.view.mask = self.borderMaskNode.view
|
self.borderNode.view.mask = self.borderMaskNode.view
|
||||||
|
|
||||||
if self.context.sharedContext.energyUsageSettings.fullTranslucency {
|
if self.context.sharedContext.energyUsageSettings.fullTranslucency {
|
||||||
self.backgroundNode?.updateIsLooping(true)
|
Queue.mainQueue().after(0.3) {
|
||||||
|
self.backgroundNode?.updateIsLooping(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user