mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-03 14:50:49 +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) {
|
if (_tabIndex == 2) {
|
||||||
_layoutRecommended.removeAllViews()
|
_layoutRecommended.removeAllViews()
|
||||||
if (results == null) {
|
if (results == null || results.isEmpty()) {
|
||||||
_layoutRecommended.addView(TextView(context).apply {
|
_layoutRecommended.addView(TextView(context).apply {
|
||||||
layoutParams = LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT).apply {
|
layoutParams = LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT).apply {
|
||||||
setMargins(20.dp(resources), 20.dp(resources), 20.dp(resources), 20.dp(resources))
|
setMargins(20.dp(resources), 20.dp(resources), 20.dp(resources), 20.dp(resources))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue