diff options
author | ByteHamster <info@bytehamster.com> | 2022-02-19 14:13:57 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-02-19 14:14:08 +0100 |
commit | eb16c794fcb25b1de72c7d146452ad0ad372868a (patch) | |
tree | f3e4fd1f7b96db50a9bcc70e3b8b5a75ac531a9f /app/src/main/java/de/danoeh/antennapod/fragment | |
parent | f4c90885d7e60089bfd94f10b09895a477f33187 (diff) | |
download | AntennaPod-eb16c794fcb25b1de72c7d146452ad0ad372868a.zip |
Fix side drawer detecting click on 'remove item'
remove_item referred to both, feeds and media files. Sometimes the wrong
fragment receives the context menu click event.
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/fragment')
4 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java index 18bc75fbd..39934191b 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java @@ -310,7 +310,7 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem if (itemId == R.id.rename_item) { new RenameItemDialog(getActivity(), feed).show(); return true; - } else if (itemId == R.id.remove_item) { + } else if (itemId == R.id.remove_feed) { ((MainActivity) getActivity()).loadFragment(EpisodesFragment.TAG, null); RemoveFeedDialog.show(getContext(), feed); return true; diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java index a5cabeb29..a8fa08a0e 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java @@ -169,7 +169,7 @@ public class NavDrawerFragment extends Fragment implements SharedPreferences.OnS } else if (itemId == R.id.rename_item) { new RenameItemDialog(getActivity(), feed).show(); return true; - } else if (itemId == R.id.remove_item) { + } else if (itemId == R.id.remove_feed) { ((MainActivity) getActivity()).loadFragment(EpisodesFragment.TAG, null); RemoveFeedDialog.show(getContext(), feed); return true; diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java index a29fd0425..697ecebf4 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java @@ -357,7 +357,7 @@ public class SubscriptionFragment extends Fragment } else if (itemId == R.id.rename_item) { new RenameItemDialog(getActivity(), feed).show(); return true; - } else if (itemId == R.id.remove_item) { + } else if (itemId == R.id.remove_feed) { RemoveFeedDialog.show(getContext(), feed); return true; } else if (itemId == R.id.multi_select) { diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/actions/FeedMultiSelectActionHandler.java b/app/src/main/java/de/danoeh/antennapod/fragment/actions/FeedMultiSelectActionHandler.java index e3dfe8ade..992c925f3 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/actions/FeedMultiSelectActionHandler.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/actions/FeedMultiSelectActionHandler.java @@ -36,7 +36,7 @@ public class FeedMultiSelectActionHandler { } public void handleAction(int id) { - if (id == R.id.remove_item) { + if (id == R.id.remove_feed) { RemoveFeedDialog.show(activity, selectedItems); } else if (id == R.id.keep_updated) { keepUpdatedPrefHandler(); |