what-the-bank/sources/com/scb/phone/view/fragment/cardmanagement/CCTermsAndConditionsFragmen...

48 lines
1.7 KiB
Java

package com.scb.phone.view.fragment.cardmanagement;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import o.C15619hEl;
import o.C2881amv;
import o.InterfaceC13391fZD;
import o.InterfaceC9001dbV;
/* loaded from: classes5.dex */
public class CCTermsAndConditionsFragment extends Hilt_CCTermsAndConditionsFragment implements InterfaceC9001dbV {
@InterfaceC13391fZD
public C2881amv presenter;
@BindView
WebView webView;
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
byte b = 0;
View inflate = layoutInflater.inflate(R.layout.2131559490, viewGroup, false);
ButterKnife.c(this, inflate);
String stringExtra = getActivity().getIntent().getStringExtra("com.scb.phone.view.activity.card_management.CCAboutActivity.KEY_TERMS_AND_CONDITIONS_URL");
this.presenter.e((C2881amv) this);
C2881amv c2881amv = this.presenter;
String W = W();
if (c2881amv.f != 0) {
c2881amv.f.y();
}
c2881amv.a.c(stringExtra, W);
C15619hEl c15619hEl = c2881amv.a;
c15619hEl.d(c15619hEl.i, new C2881amv.HBt(c2881amv, b));
return inflate;
}
@Override // o.InterfaceC9001dbV
public final void b(String str) {
this.webView.loadDataWithBaseURL("file:///android_asset/", "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/cc_content_style.css\"/>".concat(String.valueOf(str)), "text/html", "utf-8", null);
}
}