Use "Close" label for button to dismiss chapters dialog

Fixes #6117.
This commit is contained in:
Erik Johnson 2022-10-02 20:01:08 -05:00
parent 0cb47ac6d5
commit 873ffa9cef
1 changed files with 2 additions and 2 deletions

View File

@ -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);