From 862d99586c3c9de5d41bddb45e7330eab3cd40d3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 May 2025 16:18:54 +0300 Subject: update note view in article --- org.fox.ttrss/src/main/java/org/fox/ttrss/ArticleFragment.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'org.fox.ttrss/src/main/java/org') 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); -- cgit v1.2.3-54-g00ecf