diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-11-23 19:47:37 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-11-23 19:47:37 +0100 |
commit | 49974c776a4d1ccf0b1fcb83c0591673ab9f4f07 (patch) | |
tree | 2c16bd7215675aed9f595f4839649905b283f7cb /src | |
parent | 509423653d99169a3ef512d56633e8dcee775343 (diff) | |
download | AntennaPod-49974c776a4d1ccf0b1fcb83c0591673ab9f4f07.zip |
Color of chapterlist wasn't displayed correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/de/danoeh/antennapod/adapter/ChapterListAdapter.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java b/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java index 9357d0659..b10d3181d 100644 --- a/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java +++ b/src/de/danoeh/antennapod/adapter/ChapterListAdapter.java @@ -30,6 +30,8 @@ public class ChapterListAdapter extends ArrayAdapter<Chapter> { private List<Chapter> chapters; private FeedMedia media; + + private int defaultTextColor; public ChapterListAdapter(Context context, int textViewResourceId, List<Chapter> objects, FeedMedia media) { @@ -52,6 +54,7 @@ public class ChapterListAdapter extends ArrayAdapter<Chapter> { convertView = inflater.inflate(R.layout.simplechapter_item, null); holder.title = (TextView) convertView.findViewById(R.id.txtvTitle); + defaultTextColor = holder.title.getTextColors().getDefaultColor(); holder.start = (TextView) convertView.findViewById(R.id.txtvStart); holder.link = (TextView) convertView.findViewById(R.id.txtvLink); convertView.setTag(holder); @@ -126,7 +129,7 @@ public class ChapterListAdapter extends ArrayAdapter<Chapter> { holder.title.setTextColor(convertView.getResources().getColor( R.color.bright_blue)); } else { - holder.title.setTextColor(Color.parseColor("black")); + holder.title.setTextColor(defaultTextColor); } } else { Log.w(TAG, "Could not find out what the current chapter is."); |