mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 18:23:56 +00:00
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:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user