diff options
author | orionlee <orionlee@yahoo.com> | 2019-09-03 12:09:29 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-09-03 12:09:29 -0700 |
commit | 695698dbece287ef8b0e982ffc29a1b2c0f2118f (patch) | |
tree | 7365ed865a6235d2d1ef11c54a13444f63b1b947 /app/src/main/java/de/danoeh/antennapod | |
parent | cbe61a6815d2bfa6dfa8afeae9a879b380eadadc (diff) | |
download | AntennaPod-695698dbece287ef8b0e982ffc29a1b2c0f2118f.zip |
#3373 fix batch edit deselect all text label
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java index f6535d937..744249a33 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java @@ -244,10 +244,13 @@ public class EpisodesApplyActionFragment extends Fragment { // Prepare icon for select toggle button int[] icon = new int[1]; + @StringRes int titleResId; if (checkedIds.size() == episodes.size()) { icon[0] = R.attr.ic_select_none; + titleResId = R.string.deselect_all_label; } else { icon[0] = R.attr.ic_select_all; + titleResId = R.string.select_all_label; } TypedArray a = getActivity().obtainStyledAttributes(icon); @@ -255,6 +258,7 @@ public class EpisodesApplyActionFragment extends Fragment { a.recycle(); mSelectToggle.setIcon(iconDrawable); + mSelectToggle.setTitle(titleResId); } @Override |