Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null text in info row #1868

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

thornbill
Copy link
Member

Changes
Prevents "null" from showing up in the info row / subheading while browsing. I noticed this in the live tv view when a (iptv) channel had no number.

Issues
N/A

@thornbill thornbill added the bug Something isn't working label Jul 20, 2022
@thornbill thornbill added this to In progress in v0.14.0 via automation Jul 20, 2022
@@ -198,7 +198,7 @@
layout.removeAllViews();
TextView text = new TextView(context);
text.setTextSize(textSize);
text.setText(item.getSubText(context) + " ");
text.setText(Utils.getSafeValue(item.getSubText(context), "") + " ");

Check warning

Code scanning / Android Lint

TextView Internationalization

Do not concatenate text displayed with setText. Use resource string with placeholders.
v0.14.0 automation moved this from In progress to Reviewer approved Jul 20, 2022
@nielsvanvelzen nielsvanvelzen merged commit 83b24dc into jellyfin:master Jul 20, 2022
v0.14.0 automation moved this from Reviewer approved to Done Jul 20, 2022
@thornbill thornbill deleted the fix-null-channel-number branch July 20, 2022 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
v0.14.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants