mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
Fixed empty detail placeholder
This commit is contained in:
parent
0fe6ff0e40
commit
39ba477add
@ -188,7 +188,7 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
if let emptyDetailView = self.controllerView.emptyDetailView {
|
||||
emptyDetailView.image = theme.emptyDetailIcon
|
||||
if let image = theme.emptyDetailIcon {
|
||||
emptyDetailView.frame = CGRect(origin: CGPoint(x: floor((self.controllerView.containerView.bounds.size.width - image.size.width) / 2.0), y: floor((self.controllerView.containerView.bounds.size.height - image.size.height) / 2.0)), size: image.size)
|
||||
emptyDetailView.frame = CGRect(origin: CGPoint(x: floor(emptyDetailView.center.x - image.size.width / 2.0), y: floor(emptyDetailView.center.y - image.size.height / 2.0)), size: image.size)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -237,7 +237,7 @@ final class VolumeControlStatusBarNode: ASDisplayNode {
|
||||
if let graphics = self.innerGraphics {
|
||||
if self.value > 0.5 {
|
||||
self.iconNode.image = graphics.2
|
||||
} else if self.value > 0.0 {
|
||||
} else if self.value > 0.001 {
|
||||
self.iconNode.image = graphics.1
|
||||
} else {
|
||||
self.iconNode.image = graphics.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user