92 lines
2.4 KiB
Java
92 lines
2.4 KiB
Java
|
package com.scb.phone.view.activity.thirdparty;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.webkit.WebView;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.TextView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.fragment.BaseFragment;
|
||
|
import com.squareup.picasso.Picasso;
|
||
|
import o.C13020fOa;
|
||
|
import o.InterfaceC12938fLp;
|
||
|
import o.fLG;
|
||
|
import o.gjJ;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class ThirdPartyConsentFragment extends BaseFragment implements InterfaceC12938fLp {
|
||
|
IeS d;
|
||
|
|
||
|
@BindView
|
||
|
protected ImageView imgIcon;
|
||
|
|
||
|
@BindView
|
||
|
protected TextView tvConsentDetail;
|
||
|
|
||
|
@BindView
|
||
|
View viewHide;
|
||
|
|
||
|
@BindView
|
||
|
WebView wvConsentDescription;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface IeS {
|
||
|
void f();
|
||
|
|
||
|
void g();
|
||
|
}
|
||
|
|
||
|
public static ThirdPartyConsentFragment d() {
|
||
|
return new ThirdPartyConsentFragment();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559952, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
public final void c(String str, String str2) {
|
||
|
this.viewHide.setVisibility(8);
|
||
|
if (gjJ.b((CharSequence) str)) {
|
||
|
this.imgIcon.setVisibility(8);
|
||
|
} else {
|
||
|
this.imgIcon.setVisibility(0);
|
||
|
C13020fOa b = Picasso.d().e(str).e(R.drawable.shape_gray_rectangle).b(R.drawable.shape_gray_rectangle);
|
||
|
b.a.c(new fLG((int) getResources().getDimension(R.dimen.f24712131166237), 0, 0));
|
||
|
b.aBu_(this.imgIcon, null);
|
||
|
}
|
||
|
this.tvConsentDetail.setVisibility(0);
|
||
|
this.tvConsentDetail.setText(str2);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC12938fLp
|
||
|
public final void M_() {
|
||
|
if (getActivity() != null) {
|
||
|
getActivity().onBackPressed();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public void onAllowClick() {
|
||
|
IeS ieS = this.d;
|
||
|
if (ieS != null) {
|
||
|
ieS.g();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public void onDenyClick() {
|
||
|
IeS ieS = this.d;
|
||
|
if (ieS != null) {
|
||
|
ieS.f();
|
||
|
}
|
||
|
}
|
||
|
}
|