mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix emoji color
This commit is contained in:
parent
3bb658e3b8
commit
afdc11b171
@ -372,8 +372,14 @@ public final class InlineStickerItemLayer: MultiAnimationRenderTarget {
|
||||
}
|
||||
}
|
||||
|
||||
if self.layerTintColor == nil && customColor != nil {
|
||||
setLayerContentsMaskMode(self, true)
|
||||
if customColor != nil {
|
||||
if self.layerTintColor == nil {
|
||||
setLayerContentsMaskMode(self, true)
|
||||
}
|
||||
} else {
|
||||
if self.layerTintColor != nil {
|
||||
setLayerContentsMaskMode(self, false)
|
||||
}
|
||||
}
|
||||
if let customColor {
|
||||
transition.setTintColor(layer: self, color: customColor)
|
||||
@ -397,8 +403,14 @@ public final class InlineStickerItemLayer: MultiAnimationRenderTarget {
|
||||
}
|
||||
}
|
||||
|
||||
if self.layerTintColor == nil {
|
||||
setLayerContentsMaskMode(self, true)
|
||||
if customColor != nil {
|
||||
if self.layerTintColor == nil {
|
||||
setLayerContentsMaskMode(self, true)
|
||||
}
|
||||
} else {
|
||||
if self.layerTintColor != nil {
|
||||
setLayerContentsMaskMode(self, false)
|
||||
}
|
||||
}
|
||||
self.layerTintColor = customColor?.cgColor
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user