mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
ASButtonNode: disable asynchronous image loading
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
ASLockScopeSelf();
|
||||
if (!_imageNode) {
|
||||
_imageNode = [[ASImageNode alloc] init];
|
||||
_imageNode.displayWithoutProcessing = true;
|
||||
_imageNode.displaysAsynchronously = false;
|
||||
[_imageNode setLayerBacked:YES];
|
||||
}
|
||||
return _imageNode;
|
||||
@@ -81,6 +83,8 @@
|
||||
ASLockScopeSelf();
|
||||
if (!_backgroundImageNode) {
|
||||
_backgroundImageNode = [[ASImageNode alloc] init];
|
||||
_backgroundImageNode.displayWithoutProcessing = true;
|
||||
_backgroundImageNode.displaysAsynchronously = false;
|
||||
[_backgroundImageNode setLayerBacked:YES];
|
||||
[_backgroundImageNode setContentMode:UIViewContentModeScaleToFill];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user