summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/java
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-04 14:31:11 +0300
committerAndrew Dolgov <[email protected]>2015-06-04 14:31:11 +0300
commite4afee101429b0bcb3fcf0fa1e93e5e729c5d5e2 (patch)
tree3da66c6f5e163a1525c3bda8526d82bae4a7b7ee /org.fox.ttrss/src/main/java
parent42358f6f6d738b97a9e724688e3b497b693a57ba (diff)
add separate icon for unread only switchbox
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-xorg.fox.ttrss/src/main/java/org/fox/ttrss/BaseFeedlistFragment.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/BaseFeedlistFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/BaseFeedlistFragment.java
index 4a4585b6..9f9afe73 100755
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/BaseFeedlistFragment.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/BaseFeedlistFragment.java
@@ -64,6 +64,11 @@ public abstract class BaseFeedlistFragment extends Fragment {
TextView text = (TextView) footer.findViewById(R.id.title);
text.setText(R.string.unread_only);
+ ImageView icon = (ImageView) footer.findViewById(R.id.icon);
+ TypedValue tv = new TypedValue();
+ getActivity().getTheme().resolveAttribute(R.attr.ic_filter_variant, tv, true);
+ icon.setImageResource(tv.resourceId);
+
final SwitchCompat rowSwitch = (SwitchCompat) footer.findViewById(R.id.row_switch);
rowSwitch.setChecked(activity.getUnreadOnly());
@@ -88,8 +93,8 @@ public abstract class BaseFeedlistFragment extends Fragment {
text = (TextView) footer.findViewById(R.id.title);
text.setText(R.string.preferences);
- ImageView icon = (ImageView) footer.findViewById(R.id.icon);
- TypedValue tv = new TypedValue();
+ icon = (ImageView) footer.findViewById(R.id.icon);
+ tv = new TypedValue();
getActivity().getTheme().resolveAttribute(R.attr.ic_settings, tv, true);
icon.setImageResource(tv.resourceId);