mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-19 21:00:10 +00:00
Correctly compare and update title of ASButtonNode
This commit is contained in:
parent
6b44b5ac05
commit
4b331be1e8
@ -184,7 +184,7 @@
|
|||||||
newTitle = _normalAttributedTitle;
|
newTitle = _normalAttributedTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((_titleNode != nil || newTitle.length > 0) && newTitle != self.titleNode.attributedString) {
|
if ((_titleNode != nil || newTitle.length > 0) && [self.titleNode.attributedString isEqualToAttributedString:newTitle] == NO) {
|
||||||
_titleNode.attributedString = newTitle;
|
_titleNode.attributedString = newTitle;
|
||||||
self.accessibilityLabel = _titleNode.accessibilityLabel;
|
self.accessibilityLabel = _titleNode.accessibilityLabel;
|
||||||
[self setNeedsLayout];
|
[self setNeedsLayout];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user