43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
|
package com.google.android.material.bottomsheet;
|
||
|
|
||
|
import android.app.Dialog;
|
||
|
import android.os.Bundle;
|
||
|
import androidx.appcompat.app.AppCompatDialogFragment;
|
||
|
import o.ZsP;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class BottomSheetDialogFragment extends AppCompatDialogFragment {
|
||
|
@Override // androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.DialogFragment
|
||
|
public Dialog onCreateDialog(Bundle bundle) {
|
||
|
return new ZsP(getContext(), getTheme());
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.DialogFragment
|
||
|
public void dismiss() {
|
||
|
a();
|
||
|
super.dismiss();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.DialogFragment
|
||
|
public void dismissAllowingStateLoss() {
|
||
|
a();
|
||
|
super.dismissAllowingStateLoss();
|
||
|
}
|
||
|
|
||
|
private boolean a() {
|
||
|
Dialog dialog = getDialog();
|
||
|
if (!(dialog instanceof ZsP)) {
|
||
|
return false;
|
||
|
}
|
||
|
ZsP zsP = (ZsP) dialog;
|
||
|
if (zsP.d == null) {
|
||
|
zsP.Ii_();
|
||
|
}
|
||
|
if (!zsP.d.g) {
|
||
|
return false;
|
||
|
}
|
||
|
boolean z = zsP.h;
|
||
|
return false;
|
||
|
}
|
||
|
}
|