From eb16c794fcb25b1de72c7d146452ad0ad372868a Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 19 Feb 2022 14:13:57 +0100 Subject: 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. --- .../main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java | 2 +- app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java | 2 +- .../main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java | 2 +- .../antennapod/fragment/actions/FeedMultiSelectActionHandler.java | 2 +- app/src/main/res/menu/feedlist.xml | 2 +- app/src/main/res/menu/nav_feed_action_speeddial.xml | 2 +- 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" /> -- cgit v1.2.3 From 1ab012ee85cbf912fa4f7cceda1012820432ffd1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 22 Feb 2022 20:52:09 +0100 Subject: Fix subscribe button being transparent on some devices --- core/src/main/res/values/styles.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 8c15d35c0..2fa76eae5 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -109,7 +109,6 @@