fix: error when streams are empty (#249)
The current design simply presents an empty server list and leaves the user to click away. No action can be taken without leaving the dialog.
This commit is contained in:
parent
5dbc01dba3
commit
9a1ec8567c
2 changed files with 7 additions and 0 deletions
|
@ -191,6 +191,12 @@ class SelectorDialogFragment : BottomSheetDialogFragment() {
|
|||
}
|
||||
binding.selectorProgressBar.visibility = View.GONE
|
||||
}
|
||||
if (adapter.itemCount == 0) {
|
||||
snackString(getString(R.string.stream_selection_emoty))
|
||||
tryWith {
|
||||
dismiss()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue