Commit 8c6bff2e authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Video preview sizing in device list

parent 6b8fe286
Pipeline #28998 canceled with stage
......@@ -96,7 +96,9 @@ class DevicesView: MainViewContent, UITableViewDataSource, UITableViewDelegate
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
noDevices.isHidden = DeviceStore.it.devices.count > 0
devices.reloadData()
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(50)) {
self.devices.reloadData()
}
DeviceStore.it.updatedSnapshotDeviceId.observe { (deviceId) in
DeviceStore.it.devices.forEach {
......
......@@ -133,7 +133,9 @@ class NavigationManager {
if (type(of: current) == DevicesView.self || type(of: current) == HistoryView.self ) {
enterRootFragment()
current.viewWillAppear(false)
if (UIDevice.ipad()) {
current.viewWillAppear(false)
}
} else {
enterNonRootFragment()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment