Fixed formatting issues
This commit is contained in:
parent
0822058712
commit
6aaf8143de
@ -746,10 +746,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
// store original color
|
// store original color
|
||||||
origTitleColors[viewType] = Integer.valueOf(tv.getCurrentTextColor());
|
origTitleColors[viewType] = Integer.valueOf(tv.getCurrentTextColor());
|
||||||
|
|
||||||
if(score < -100) {
|
if (score < -100) {
|
||||||
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
|
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
|
||||||
} else if(score > 500) {
|
} else if (score > 500) {
|
||||||
if(unread)
|
if (unread)
|
||||||
tv.setTextColor(titleHighScoreUnreadColor);
|
tv.setTextColor(titleHighScoreUnreadColor);
|
||||||
tv.setPaintFlags(tv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);
|
tv.setPaintFlags(tv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);
|
||||||
} else {
|
} else {
|
||||||
@ -760,7 +760,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void notifyUpdated() {
|
public void notifyUpdated() {
|
||||||
m_adapter.notifyDataSetChanged();
|
m_adapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
@ -285,7 +285,7 @@ public class OfflineArticleFragment extends Fragment implements GestureDetector.
|
|||||||
|
|
||||||
if (author != null) {
|
if (author != null) {
|
||||||
int authorIndex = m_cursor.getColumnIndex("author");
|
int authorIndex = m_cursor.getColumnIndex("author");
|
||||||
if(authorIndex >= 0)
|
if (authorIndex >= 0)
|
||||||
author.setText(m_cursor.getString(authorIndex));
|
author.setText(m_cursor.getString(authorIndex));
|
||||||
else
|
else
|
||||||
author.setVisibility(View.GONE);
|
author.setVisibility(View.GONE);
|
||||||
|
@ -536,7 +536,7 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
|
|||||||
|
|
||||||
if (ta != null) {
|
if (ta != null) {
|
||||||
int authorIndex = article.getColumnIndex("author");
|
int authorIndex = article.getColumnIndex("author");
|
||||||
if(authorIndex >= 0)
|
if (authorIndex >= 0)
|
||||||
ta.setText(article.getString(authorIndex));
|
ta.setText(article.getString(authorIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -602,10 +602,10 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
|
|||||||
// store original color
|
// store original color
|
||||||
origTitleColors[viewType] = Integer.valueOf(tv.getCurrentTextColor());
|
origTitleColors[viewType] = Integer.valueOf(tv.getCurrentTextColor());
|
||||||
|
|
||||||
if(score < -100) {
|
if (score < -100) {
|
||||||
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
|
tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
|
||||||
} else if(score > 500) {
|
} else if (score > 500) {
|
||||||
if(unread)
|
if (unread)
|
||||||
tv.setTextColor(titleHighScoreUnreadColor);
|
tv.setTextColor(titleHighScoreUnreadColor);
|
||||||
tv.setPaintFlags(tv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);
|
tv.setPaintFlags(tv.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user