104 lines
3.2 KiB
Java
104 lines
3.2 KiB
Java
package com.scb.phone.view.fragment;
|
|
|
|
import android.app.Dialog;
|
|
import android.graphics.drawable.ColorDrawable;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.view.Window;
|
|
import android.widget.TextView;
|
|
import androidx.core.app.ActivityCompat;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.scb.phone.R;
|
|
import o.C14957gcv;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class ErrorAppDownTimeDialogFragment extends Hilt_ErrorAppDownTimeDialogFragment {
|
|
|
|
@BindView
|
|
public TextView tvErrorMessages;
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
C14957gcv.e(layoutInflater, "");
|
|
View inflate = layoutInflater.inflate(R.layout.2131559636, viewGroup, false);
|
|
ButterKnife.c(this, inflate);
|
|
return inflate;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final void onViewCreated(View view, Bundle bundle) {
|
|
String string;
|
|
C14957gcv.e(view, "");
|
|
super.onViewCreated(view, bundle);
|
|
Bundle arguments = getArguments();
|
|
if (arguments == null || (string = arguments.getString("EXTRA_ERROR_MESSAGES")) == null) {
|
|
return;
|
|
}
|
|
TextView textView = this.tvErrorMessages;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setText(string);
|
|
}
|
|
|
|
@Override // androidx.fragment.app.DialogFragment
|
|
public final Dialog onCreateDialog(Bundle bundle) {
|
|
Dialog onCreateDialog = super.onCreateDialog(bundle);
|
|
C14957gcv.c(onCreateDialog, "");
|
|
setCancelable(false);
|
|
Window window = onCreateDialog.getWindow();
|
|
if (window != null) {
|
|
window.requestFeature(1);
|
|
}
|
|
return onCreateDialog;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final void onResume() {
|
|
Dialog dialog = getDialog();
|
|
Window window = dialog != null ? dialog.getWindow() : null;
|
|
if (window != null) {
|
|
window.setLayout(-1, -1);
|
|
window.setBackgroundDrawable(new ColorDrawable(0));
|
|
}
|
|
super.onResume();
|
|
}
|
|
|
|
@OnClick
|
|
public final void onClickOk() {
|
|
FragmentActivity activity = getActivity();
|
|
if (activity != null) {
|
|
ActivityCompat.lH_(activity);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class LWm {
|
|
private LWm() {
|
|
}
|
|
|
|
public /* synthetic */ LWm(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public static final ErrorAppDownTimeDialogFragment e(String str) {
|
|
C14957gcv.e(str, "");
|
|
ErrorAppDownTimeDialogFragment errorAppDownTimeDialogFragment = new ErrorAppDownTimeDialogFragment();
|
|
Bundle bundle = new Bundle();
|
|
bundle.putString("EXTRA_ERROR_MESSAGES", str);
|
|
errorAppDownTimeDialogFragment.setArguments(bundle);
|
|
return errorAppDownTimeDialogFragment;
|
|
}
|
|
|
|
static {
|
|
new LWm((byte) 0);
|
|
}
|
|
}
|