diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-05-08 16:18:54 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-05-08 16:18:54 +0300 |
| commit | 862d99586c3c9de5d41bddb45e7330eab3cd40d3 (patch) | |
| tree | a20c630f47edf4afd0a997098a5aa2452e3e4314 /org.fox.ttrss/src/main/java/org/fox | |
| parent | 5f68e79ef3b3ef57fdfbc78c54a81fba5c7b21b2 (diff) | |
update note view in article
Diffstat (limited to 'org.fox.ttrss/src/main/java/org/fox')
| -rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java index 959ef7bf..aa623b6c 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java @@ -354,15 +354,16 @@ public class ArticleFragment extends androidx.fragment.app.Fragment { } TextView note = view.findViewById(R.id.note); + View noteContainer = view.findViewById(R.id.note_container); - if (note != null) { - if (m_article.note != null && !"".equals(m_article.note)) { + if (note != null && noteContainer != null) { + if (m_article.note != null && m_article.note.length() > 0) { note.setTextSize(TypedValue.COMPLEX_UNIT_SP, m_articleSmallFontSize); note.setText(m_article.note); + noteContainer.setVisibility(View.VISIBLE); } else { - note.setVisibility(View.GONE); + noteContainer.setVisibility(View.GONE); } - } TextView dv = view.findViewById(R.id.date); |