mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-17 22:33:44 +08:00
Apply same fix on opaqueness
This commit is contained in:
@@ -333,14 +333,11 @@ if (shouldApply) { _layer.layerProperty = (layerValueExpr); } else { _pendingVie
|
||||
|
||||
- (void)setOpaque:(BOOL)newOpaque
|
||||
{
|
||||
BOOL prevOpaque = self.opaque;
|
||||
|
||||
_bridge_prologue_write;
|
||||
_setToLayer(opaque, newOpaque);
|
||||
|
||||
if (prevOpaque != newOpaque) {
|
||||
[self setNeedsDisplay];
|
||||
}
|
||||
// FIXME: Would like to setNeedsDisplay if opaqueness changed, but
|
||||
// not safe to read old value in background.
|
||||
}
|
||||
|
||||
- (BOOL)isUserInteractionEnabled
|
||||
|
||||
Reference in New Issue
Block a user