mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Check both length and null for 'No recommendations found'
This commit is contained in:
parent
8c4e511883
commit
f20a708b36
1 changed files with 1 additions and 1 deletions
|
@ -2376,7 +2376,7 @@ class VideoDetailView : ConstraintLayout {
|
|||
|
||||
if (_tabIndex == 2) {
|
||||
_layoutRecommended.removeAllViews()
|
||||
if (results == null) {
|
||||
if (results == null || results.isEmpty()) {
|
||||
_layoutRecommended.addView(TextView(context).apply {
|
||||
layoutParams = LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT).apply {
|
||||
setMargins(20.dp(resources), 20.dp(resources), 20.dp(resources), 20.dp(resources))
|
||||
|
|
Loading…
Add table
Reference in a new issue