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
|
reachedMaximumLimit = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let contentSize: CGSize
|
||||||
|
if state.initialized {
|
||||||
let title = title.update(
|
let title = title.update(
|
||||||
component: MultilineTextComponent(
|
component: MultilineTextComponent(
|
||||||
text: .plain(NSAttributedString(
|
text: .plain(NSAttributedString(
|
||||||
@ -852,8 +854,6 @@ private final class LimitSheetContent: CombinedComponent {
|
|||||||
transition: .immediate
|
transition: .immediate
|
||||||
)
|
)
|
||||||
|
|
||||||
let contentSize: CGSize
|
|
||||||
if state.initialized {
|
|
||||||
let gradientColors: [UIColor]
|
let gradientColors: [UIColor]
|
||||||
if isPremiumDisabled {
|
if isPremiumDisabled {
|
||||||
gradientColors = [
|
gradientColors = [
|
||||||
|
@ -128,10 +128,10 @@ public final class SolidRoundedButtonNode: ASDisplayNode {
|
|||||||
if self.gloss {
|
if self.gloss {
|
||||||
self.animationTimer?.invalidate()
|
self.animationTimer?.invalidate()
|
||||||
|
|
||||||
Queue.mainQueue().after(0.75) {
|
Queue.mainQueue().after(1.25) {
|
||||||
self.animationNode?.play()
|
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()
|
self?.animationNode?.play()
|
||||||
}, queue: Queue.mainQueue())
|
}, queue: Queue.mainQueue())
|
||||||
self.animationTimer = timer
|
self.animationTimer = timer
|
||||||
@ -672,10 +672,10 @@ public final class SolidRoundedButtonView: UIView {
|
|||||||
if self.gloss {
|
if self.gloss {
|
||||||
self.animationTimer?.invalidate()
|
self.animationTimer?.invalidate()
|
||||||
|
|
||||||
Queue.mainQueue().after(0.75) {
|
Queue.mainQueue().after(1.25) {
|
||||||
self.animationNode?.play()
|
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()
|
self?.animationNode?.play()
|
||||||
}, queue: Queue.mainQueue())
|
}, queue: Queue.mainQueue())
|
||||||
self.animationTimer = timer
|
self.animationTimer = timer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user