Merge "Hide loading view if config service is not available" into main
This commit is contained in:
@@ -138,8 +138,14 @@ class DeviceDetailsFragmentFormatterImpl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun updateLayoutInternal(fragmentType: FragmentTypeModel) {
|
private suspend fun updateLayoutInternal(fragmentType: FragmentTypeModel) {
|
||||||
val items = viewModel.getItems(fragmentType) ?: return
|
val items = viewModel.getItems(fragmentType) ?: run {
|
||||||
val layout = viewModel.getLayout(fragmentType) ?: return
|
fragment.setLoading(false, false)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
val layout = viewModel.getLayout(fragmentType) ?: run {
|
||||||
|
fragment.setLoading(false, false)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
val prefKeyToSettingId =
|
val prefKeyToSettingId =
|
||||||
items
|
items
|
||||||
|
|||||||
Reference in New Issue
Block a user