mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-30 17:31:58 +00:00
Merge commit '584694a4008548701ca2e3e7e88e6764df4eec07'
This commit is contained in:
commit
9f30946970
@ -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