mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
ASButtonNode: disable asynchronous image loading
This commit is contained in:
parent
284db5aba8
commit
9a568ca9da
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user