mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Merge pull request #1903 from nguyenhuy/ASButtonNode_updateTitle
[ASButtonNode] Correctly compare and update its title
This commit is contained in:
@@ -184,7 +184,7 @@
|
||||
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;
|
||||
self.accessibilityLabel = _titleNode.accessibilityLabel;
|
||||
[self setNeedsLayout];
|
||||
|
||||
Reference in New Issue
Block a user