what-the-bank/sources/com/google/android/material/datepicker/MaterialTextInputPicker.java

60 lines
1.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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<S> extends PickerFragment<S> {
private FOT a;
private OAR<S> 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<S> oar = this.c;
new SIS<S>(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<SIS<S>> it = this.e.h.iterator();
while (it.hasNext()) {
it.next().e(s);
}
}
};
return oar.g();
}
}