what-the-bank/sources/com/scb/phone/view/fragment/investment/PdfViewerFragment.java

104 lines
3.2 KiB
Java

package com.scb.phone.view.fragment.investment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.investment.PdfViewerFragment;
import o.C10318eAn;
import o.C12914fKz;
/* loaded from: classes5.dex */
public class PdfViewerFragment extends Hilt_PdfViewerFragment implements C10318eAn.RVV {
@BindView
protected Button buttonNext;
private RVV d;
@BindView
protected FrameLayout pdfView;
/* loaded from: classes5.dex */
public interface RVV {
void g();
void h();
void j();
}
public static PdfViewerFragment e(String str, String str2, String str3) {
Bundle bundle = new Bundle();
bundle.putString("PDF_TITLE_VIWER", str);
bundle.putString("PDF_URL", str2);
bundle.putString("PDF_BUTTON_TEXT", str3);
PdfViewerFragment pdfViewerFragment = new PdfViewerFragment();
pdfViewerFragment.setArguments(bundle);
return pdfViewerFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131560223, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
super.onCreateView(layoutInflater, viewGroup, bundle);
super.aa();
u(getArguments().getString("PDF_TITLE_VIWER"));
Y();
this.buttonNext.setText(getArguments().getString("PDF_BUTTON_TEXT"));
String string = getArguments().getString("PDF_URL");
this.d.g();
C12914fKz.e(new Object[]{getContext(), this, null, new C10318eAn.Sts(this) { // from class: o.fgj
private PdfViewerFragment b;
@Override // o.C10318eAn.Sts
public final void e() {
this.b.d.j();
}
{
this.b = this;
}
}, this.pdfView, string}, -793427580, 793427589, (int) System.currentTimeMillis());
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment
public final void aa() {
super.aa();
u(getArguments().getString("PDF_TITLE_VIWER"));
Y();
}
@OnClick
public void onNextButtonClick() {
RVV rvv = this.d;
if (rvv != null) {
rvv.h();
}
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.investment.Hilt_PdfViewerFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof RVV) {
this.d = (RVV) context;
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
super.onDestroy();
this.d = null;
}
}