mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Check both length and null for 'No recommendations found'
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user