Fix capital to match android var name

PiperOrigin-RevId: 252815990
This commit is contained in:
ldjesper 2019-06-12 09:55:00 -04:00 committed by ymarian
parent 5c1063f867
commit 32a895ded8
4 changed files with 5 additions and 5 deletions

View File

@ -111,7 +111,7 @@ public final class MaterialCalendar<S> extends PickerFragment<S> {
int layout;
int orientation;
if (MaterialPickerDialogFragment.isFullScreen(themedContext)) {
if (MaterialPickerDialogFragment.isFullscreen(themedContext)) {
layout = R.layout.mtrl_calendar_vertical;
orientation = ViewPager2.ORIENTATION_VERTICAL;
} else {

View File

@ -181,7 +181,7 @@ public abstract class MaterialPickerDialogFragment<S> extends DialogFragment {
public final Dialog onCreateDialog(@Nullable Bundle bundle) {
Dialog dialog = new Dialog(requireContext(), themeResId);
Context context = dialog.getContext();
fullscreen = isFullScreen(context);
fullscreen = isFullscreen(context);
int surfaceColor =
MaterialAttributes.resolveOrThrow(
getContext(),
@ -330,7 +330,7 @@ public abstract class MaterialPickerDialogFragment<S> extends DialogFragment {
return toggleDrawable;
}
static boolean isFullScreen(Context context) {
static boolean isFullscreen(Context context) {
int calendarStyle =
MaterialAttributes.resolveOrThrow(
context, R.attr.materialCalendarStyle, MaterialCalendar.class.getCanonicalName());

View File

@ -82,7 +82,7 @@ public class MonthFragment extends Fragment {
LayoutInflater themedInflater = LayoutInflater.from(context);
final int layout;
if (MaterialPickerDialogFragment.isFullScreen(context)) {
if (MaterialPickerDialogFragment.isFullscreen(context)) {
layout = R.layout.mtrl_calendar_month_labeled;
} else {
layout = R.layout.mtrl_calendar_month;

View File

@ -89,7 +89,7 @@ class MonthsPagerAdapter extends FragmentStateAdapter {
.getResources()
.getDimensionPixelSize(R.dimen.mtrl_calendar_day_spacing_vertical);
int labelHeight =
MaterialPickerDialogFragment.isFullScreen(context)
MaterialPickerDialogFragment.isFullscreen(context)
? MaterialCalendar.getDayHeight(context)
: 0;