package com.google.android.material.datepicker; import android.os.Bundle; import android.view.ContextThemeWrapper; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.Iterator; import o.FOT; import o.OAR; import o.SIS; /* loaded from: classes2.dex */ public final class MaterialTextInputPicker extends PickerFragment { private FOT a; private OAR c; private int e; @Override // androidx.fragment.app.Fragment public final void onSaveInstanceState(Bundle bundle) { super.onSaveInstanceState(bundle); bundle.putInt("THEME_RES_ID_KEY", this.e); bundle.putParcelable("DATE_SELECTOR_KEY", this.c); bundle.putParcelable("CALENDAR_CONSTRAINTS_KEY", this.a); } @Override // androidx.fragment.app.Fragment public final void onCreate(Bundle bundle) { super.onCreate(bundle); if (bundle == null) { bundle = getArguments(); } this.e = bundle.getInt("THEME_RES_ID_KEY"); this.c = (OAR) bundle.getParcelable("DATE_SELECTOR_KEY"); this.a = (FOT) bundle.getParcelable("CALENDAR_CONSTRAINTS_KEY"); } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { layoutInflater.cloneInContext(new ContextThemeWrapper(getContext(), this.e)); OAR oar = this.c; new SIS(this) { // from class: com.google.android.material.datepicker.MaterialTextInputPicker.5 private MaterialTextInputPicker e; { this.e = this; } @Override // o.SIS public final void e(S s) { Iterator> it = this.e.h.iterator(); while (it.hasNext()) { it.next().e(s); } } }; return oar.g(); } }