Merge commit '584694a4008548701ca2e3e7e88e6764df4eec07'

This commit is contained in:
Peter 2019-02-26 22:53:06 +03:00
commit 9f30946970
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}
}

View File

@ -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