Merge pull request #6121 from terminalmage/issue6117

Use "Close" label for button to dismiss chapters dialog
This commit is contained in:
ByteHamster 2022-10-03 11:46:36 +02:00 committed by GitHub
commit 9783f5dc25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);