diff options
author | orionlee <orionlee@yahoo.com> | 2019-04-03 13:31:32 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-04-03 13:31:32 -0700 |
commit | a1d718a59a85370788cfc60dc26ff619f15535be (patch) | |
tree | 049e4565bcf3137b6cac554d11ffe90d5169c139 /app/src/main/java/de/danoeh/antennapod/dialog | |
parent | 4322e8646f6f81cb62a24b8ace5d12b9fea30b1c (diff) | |
download | AntennaPod-a1d718a59a85370788cfc60dc26ff619f15535be.zip |
bulk edit - refactor - rename internal constant flags so that the names are consistent
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/dialog')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java | 20 |
1 files changed, 10 insertions, 10 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 67e180d9c..cee11d1ba 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java @@ -42,14 +42,14 @@ public class EpisodesApplyActionFragment extends Fragment { public static final String TAG = "EpisodeActionFragment"; - public static final int ACTION_QUEUE = 1; - private static final int ACTION_MARK_PLAYED = 2; - private static final int ACTION_MARK_UNPLAYED = 4; - private static final int ACTION_DOWNLOAD = 8; - public static final int ACTION_REMOVE = 16; - public static final int ACTION_REMOVE_FROM_QUEUE = 32; - private static final int ACTION_ALL = ACTION_QUEUE | ACTION_REMOVE_FROM_QUEUE - | ACTION_MARK_PLAYED | ACTION_MARK_UNPLAYED | ACTION_DOWNLOAD | ACTION_REMOVE; + public static final int ACTION_ADD_TO_QUEUE = 1; + private static final int ACTION_REMOVE_FROM_QUEUE = 2; + private static final int ACTION_MARK_PLAYED = 4; + private static final int ACTION_MARK_UNPLAYED = 8; + private static final int ACTION_DOWNLOAD = 16; + public static final int ACTION_DELETE = 32; + private static final int ACTION_ALL = ACTION_ADD_TO_QUEUE | ACTION_REMOVE_FROM_QUEUE + | ACTION_MARK_PLAYED | ACTION_MARK_UNPLAYED | ACTION_DOWNLOAD | ACTION_DELETE; private ListView mListView; private ArrayAdapter<String> mAdapter; @@ -153,7 +153,7 @@ public class EpisodesApplyActionFragment extends Fragment { mSpeedDialView.inflate(R.menu.episodes_apply_action_speeddial); // show only specified actions, and bind speed dial UIs to the actual logic - if((actions & ACTION_QUEUE) == 0) { + if((actions & ACTION_ADD_TO_QUEUE) == 0) { mSpeedDialView.removeActionItemById(R.id.addToQueue); } if((actions & ACTION_REMOVE_FROM_QUEUE) == 0) { @@ -168,7 +168,7 @@ public class EpisodesApplyActionFragment extends Fragment { if((actions & ACTION_DOWNLOAD) == 0) { mSpeedDialView.removeActionItemById(R.id.download); } - if((actions & ACTION_REMOVE) == 0) { + if((actions & ACTION_DELETE) == 0) { mSpeedDialView.removeActionItemById(R.id.delete); } mSpeedDialView.setOnActionSelectedListener(actionItem -> { |