From 873ffa9cef9108db73d4968a8b83525adf22124e Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Sun, 2 Oct 2022 20:01:08 -0500 Subject: [PATCH] Use "Close" label for button to dismiss chapters dialog Fixes #6117. --- .../java/de/danoeh/antennapod/fragment/ChaptersFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java index 8304b8f58..2a225fb77 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ChaptersFragment.java @@ -50,7 +50,7 @@ public class ChaptersFragment extends AppCompatDialogFragment { return new MaterialAlertDialogBuilder(requireContext()) .setTitle(getString(R.string.chapters_label)) .setView(onCreateView(getLayoutInflater())) - .setNegativeButton(getString(R.string.cancel_label), null) //dismisses + .setNegativeButton(getString(R.string.close_label), null) //dismisses .create(); } @@ -76,7 +76,7 @@ public class ChaptersFragment extends AppCompatDialogFragment { recyclerView.setAdapter(adapter); progressBar.setVisibility(View.VISIBLE); - + RelativeLayout.LayoutParams wrapHeight = new RelativeLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); recyclerView.setLayoutParams(wrapHeight);