diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 693b39a0..b24716b3 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -543,7 +543,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, public ArticleListAdapter(Context context, int textViewResourceId, ArrayList
items) { super(context, textViewResourceId, items); this.items = items; - + Theme theme = context.getTheme(); TypedValue tv = new TypedValue(); theme.resolveAttribute(R.attr.headlineTitleHighScoreUnreadTextColor, tv, true); @@ -742,14 +742,14 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, private void adjustTitleTextView(int score, boolean unread, TextView tv, int position) { int viewType = getItemViewType(position); - if (origTitleColors[viewType] == null) + if (origTitleColors[viewType] == null) // store original color origTitleColors[viewType] = Integer.valueOf(tv.getCurrentTextColor()); - if(score < -100) { + if (score < -100) { tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); - } else if(score > 500) { - if(unread) + } else if (score > 500) { + if (unread) tv.setTextColor(titleHighScoreUnreadColor); tv.setPaintFlags(tv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG); } else { @@ -760,7 +760,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, } - public void notifyUpdated() { m_adapter.notifyDataSetChanged(); } diff --git a/src/org/fox/ttrss/offline/OfflineArticleFragment.java b/src/org/fox/ttrss/offline/OfflineArticleFragment.java index 2c51f033..621367d2 100644 --- a/src/org/fox/ttrss/offline/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/offline/OfflineArticleFragment.java @@ -285,7 +285,7 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector. if (author != null) { int authorIndex = m_cursor.getColumnIndex("author"); - if(authorIndex >= 0) + if (authorIndex >= 0) author.setText(m_cursor.getString(authorIndex)); else author.setVisibility(View.GONE); diff --git a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index 8c9d41c1..353bf517 100644 --- a/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/src/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -536,7 +536,7 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis if (ta != null) { int authorIndex = article.getColumnIndex("author"); - if(authorIndex >= 0) + if (authorIndex >= 0) ta.setText(article.getString(authorIndex)); } @@ -598,14 +598,14 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis private void adjustTitleTextView(int score, boolean unread, TextView tv, int position) { int viewType = getItemViewType(position); - if (origTitleColors[viewType] == null) + if (origTitleColors[viewType] == null) // store original color origTitleColors[viewType] = Integer.valueOf(tv.getCurrentTextColor()); - if(score < -100) { + if (score < -100) { tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); - } else if(score > 500) { - if(unread) + } else if (score > 500) { + if (unread) tv.setTextColor(titleHighScoreUnreadColor); tv.setPaintFlags(tv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG); } else {