mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix loading sticker pack appearance
This commit is contained in:
@@ -583,12 +583,18 @@ final class StickerPackPreviewControllerNode: ViewControllerTracingNode, UIScrol
|
||||
switch stickerPack {
|
||||
case .none, .fetching:
|
||||
self.installActionSeparatorNode.alpha = 0.0
|
||||
self.shareActionSeparatorNode.alpha = 0.0
|
||||
self.shareActionButtonNode.alpha = 0.0
|
||||
self.installActionButtonNode.alpha = 0.0
|
||||
self.installActionButtonNode.setTitle("", with: Font.medium(20.0), with: self.presentationData.theme.actionSheet.standardActionTextColor, for: .normal)
|
||||
case let .result(info, _, installed):
|
||||
if self.stickerPackInitiallyInstalled == nil {
|
||||
self.stickerPackInitiallyInstalled = installed
|
||||
}
|
||||
self.installActionSeparatorNode.alpha = 1.0
|
||||
self.shareActionSeparatorNode.alpha = 1.0
|
||||
self.shareActionButtonNode.alpha = 1.0
|
||||
self.installActionButtonNode.alpha = 1.0
|
||||
if installed {
|
||||
let text: String
|
||||
if info.id.namespace == Namespaces.ItemCollection.CloudStickerPacks {
|
||||
|
||||
Reference in New Issue
Block a user