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 | |
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')
6 files changed, 6 insertions, 6 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(); diff --git a/app/src/main/res/menu/feedlist.xml b/app/src/main/res/menu/feedlist.xml index 12cbc2e5e..3c66ec4ba 100644 --- a/app/src/main/res/menu/feedlist.xml +++ b/app/src/main/res/menu/feedlist.xml @@ -70,7 +70,7 @@ custom:showAsAction="never" /> <item - android:id="@+id/remove_item" + android:id="@+id/remove_feed" android:icon="@drawable/ic_delete" android:menuCategory="container" android:title="@string/remove_feed_label" diff --git a/app/src/main/res/menu/nav_feed_action_speeddial.xml b/app/src/main/res/menu/nav_feed_action_speeddial.xml index d08aa645f..15f2511fb 100644 --- a/app/src/main/res/menu/nav_feed_action_speeddial.xml +++ b/app/src/main/res/menu/nav_feed_action_speeddial.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item - android:id="@+id/remove_item" + android:id="@+id/remove_feed" android:menuCategory="container" android:title="@string/remove_feed_label" android:icon="@drawable/ic_delete"/> |