mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Don't clear avatar node contents on hide
This commit is contained in:
@@ -2998,7 +2998,7 @@ ASDISPLAYNODE_INLINE BOOL subtreeIsRasterized(ASDisplayNode *node) {
|
||||
if ([self _implementsDisplay]) {
|
||||
if (nowDisplay) {
|
||||
[ASDisplayNode scheduleNodeForRecursiveDisplay:self];
|
||||
} else {
|
||||
} else if (!self.disableClearContentsOnHide) {
|
||||
[[self asyncLayer] cancelAsyncDisplay];
|
||||
//schedule clear contents on next runloop
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
@@ -567,6 +567,8 @@ AS_EXTERN NSInteger const ASDefaultDrawingPriority;
|
||||
*/
|
||||
@property BOOL automaticallyRelayoutOnLayoutMarginsChanges;
|
||||
|
||||
@property (nonatomic) bool disableClearContentsOnHide;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user