mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix crash
This commit is contained in:
parent
2178261bad
commit
f68632cb36
@ -819,6 +819,8 @@ private final class LimitSheetContent: CombinedComponent {
|
||||
reachedMaximumLimit = false
|
||||
}
|
||||
|
||||
let contentSize: CGSize
|
||||
if state.initialized {
|
||||
let title = title.update(
|
||||
component: MultilineTextComponent(
|
||||
text: .plain(NSAttributedString(
|
||||
@ -852,8 +854,6 @@ private final class LimitSheetContent: CombinedComponent {
|
||||
transition: .immediate
|
||||
)
|
||||
|
||||
let contentSize: CGSize
|
||||
if state.initialized {
|
||||
let gradientColors: [UIColor]
|
||||
if isPremiumDisabled {
|
||||
gradientColors = [
|
||||
|
@ -128,10 +128,10 @@ public final class SolidRoundedButtonNode: ASDisplayNode {
|
||||
if self.gloss {
|
||||
self.animationTimer?.invalidate()
|
||||
|
||||
Queue.mainQueue().after(0.75) {
|
||||
Queue.mainQueue().after(1.25) {
|
||||
self.animationNode?.play()
|
||||
|
||||
let timer = SwiftSignalKit.Timer(timeout: 3.0, repeat: true, completion: { [weak self] in
|
||||
let timer = SwiftSignalKit.Timer(timeout: 4.0, repeat: true, completion: { [weak self] in
|
||||
self?.animationNode?.play()
|
||||
}, queue: Queue.mainQueue())
|
||||
self.animationTimer = timer
|
||||
@ -672,10 +672,10 @@ public final class SolidRoundedButtonView: UIView {
|
||||
if self.gloss {
|
||||
self.animationTimer?.invalidate()
|
||||
|
||||
Queue.mainQueue().after(0.75) {
|
||||
Queue.mainQueue().after(1.25) {
|
||||
self.animationNode?.play()
|
||||
|
||||
let timer = SwiftSignalKit.Timer(timeout: 3.0, repeat: true, completion: { [weak self] in
|
||||
let timer = SwiftSignalKit.Timer(timeout: 4.0, repeat: true, completion: { [weak self] in
|
||||
self?.animationNode?.play()
|
||||
}, queue: Queue.mainQueue())
|
||||
self.animationTimer = timer
|
||||
|
Loading…
x
Reference in New Issue
Block a user