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
|
binding.selectorProgressBar.visibility = View.GONE
|
||||||
}
|
}
|
||||||
|
if (adapter.itemCount == 0) {
|
||||||
|
snackString(getString(R.string.stream_selection_emoty))
|
||||||
|
tryWith {
|
||||||
|
dismiss()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -413,6 +413,7 @@
|
||||||
<string name="reset_auto_update">You can long click List Editor button to Reset Auto Update</string>
|
<string name="reset_auto_update">You can long click List Editor button to Reset Auto Update</string>
|
||||||
<string name="autoplay_cancelled">Autoplay cancelled, no Interaction for more than 1 Hour.</string>
|
<string name="autoplay_cancelled">Autoplay cancelled, no Interaction for more than 1 Hour.</string>
|
||||||
<string name="auto_select_server_error">Couldn\'t auto select the server, Please try again!</string>
|
<string name="auto_select_server_error">Couldn\'t auto select the server, Please try again!</string>
|
||||||
|
<string name="stream_selection_emoty">No streams available for content. Try another source.</string>
|
||||||
<string name="logging_in_mal">Logging in MAL</string>
|
<string name="logging_in_mal">Logging in MAL</string>
|
||||||
<string name="getting_user_data">Getting User Data</string>
|
<string name="getting_user_data">Getting User Data</string>
|
||||||
<string name="no_next_episode">No next Episode Found!</string>
|
<string name="no_next_episode">No next Episode Found!</string>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue