Merge pull request #6121 from terminalmage/issue6117
Use "Close" label for button to dismiss chapters dialog
This commit is contained in:
commit
9783f5dc25
|
@ -50,7 +50,7 @@ public class ChaptersFragment extends AppCompatDialogFragment {
|
||||||
return new MaterialAlertDialogBuilder(requireContext())
|
return new MaterialAlertDialogBuilder(requireContext())
|
||||||
.setTitle(getString(R.string.chapters_label))
|
.setTitle(getString(R.string.chapters_label))
|
||||||
.setView(onCreateView(getLayoutInflater()))
|
.setView(onCreateView(getLayoutInflater()))
|
||||||
.setNegativeButton(getString(R.string.cancel_label), null) //dismisses
|
.setNegativeButton(getString(R.string.close_label), null) //dismisses
|
||||||
.create();
|
.create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ public class ChaptersFragment extends AppCompatDialogFragment {
|
||||||
recyclerView.setAdapter(adapter);
|
recyclerView.setAdapter(adapter);
|
||||||
|
|
||||||
progressBar.setVisibility(View.VISIBLE);
|
progressBar.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
RelativeLayout.LayoutParams wrapHeight = new RelativeLayout.LayoutParams(
|
RelativeLayout.LayoutParams wrapHeight = new RelativeLayout.LayoutParams(
|
||||||
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||||
recyclerView.setLayoutParams(wrapHeight);
|
recyclerView.setLayoutParams(wrapHeight);
|
||||||
|
|
Loading…
Reference in New Issue