Various Fixes

This commit is contained in:
Ilya Laktyushin 2021-10-29 18:22:44 +04:00
parent ee17de35dd
commit b40dd4320b
3 changed files with 7 additions and 1 deletions

View File

@ -560,6 +560,9 @@ final class BotCheckoutInfoControllerNode: ViewControllerTracingNode, UIScrollVi
} }
func scrollViewDidScroll(_ scrollView: UIScrollView) { func scrollViewDidScroll(_ scrollView: UIScrollView) {
guard !self.scrollNode.view.ignoreUpdateBounds else {
return
}
let value = scrollView.contentOffset.y + scrollView.contentInset.top let value = scrollView.contentOffset.y + scrollView.contentInset.top
self.navigationBar?.updateBackgroundAlpha(min(30.0, value) / 30.0, transition: .immediate) self.navigationBar?.updateBackgroundAlpha(min(30.0, value) / 30.0, transition: .immediate)
} }

View File

@ -549,6 +549,9 @@ final class BotCheckoutNativeCardEntryControllerNode: ViewControllerTracingNode,
} }
func scrollViewDidScroll(_ scrollView: UIScrollView) { func scrollViewDidScroll(_ scrollView: UIScrollView) {
guard !self.scrollNode.view.ignoreUpdateBounds else {
return
}
let value = scrollView.contentOffset.y + scrollView.contentInset.top let value = scrollView.contentOffset.y + scrollView.contentInset.top
self.navigationBar?.updateBackgroundAlpha(min(30.0, value) / 30.0, transition: .immediate) self.navigationBar?.updateBackgroundAlpha(min(30.0, value) / 30.0, transition: .immediate)
} }

View File

@ -139,7 +139,7 @@ func iconForSession(_ session: RecentAccountSession) -> (UIImage?, String?) {
return (UIImage(bundleImageName: "Settings/Devices/Android"), "device_android") return (UIImage(bundleImageName: "Settings/Devices/Android"), "device_android")
} }
if device.contains("iphone") { if device.contains("iphone") {
return (UIImage(bundleImageName: "Settings/Devices/iPhone"), nil) return (UIImage(bundleImageName: "Settings/Devices/iPhone"), "device_iphone")
} }
if device.contains("ipad") { if device.contains("ipad") {
return (UIImage(bundleImageName: "Settings/Devices/iPad"), nil) return (UIImage(bundleImageName: "Settings/Devices/iPad"), nil)