what-the-bank/sources/com/facetec/sdk/b.java

171 lines
5.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat;
import com.facetec.sdk.aq;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import o.nMh;
/* loaded from: classes.dex */
public final class b extends aq {
private View a;
private View b;
private FrameLayout c;
private View d;
private ImageView e;
private TextView g;
private boolean i = false;
@Override // com.facetec.sdk.aq, android.app.Fragment
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
}
@Override // android.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.facetec_additional_review_fragment, viewGroup, false);
this.b = inflate;
return inflate;
}
@Override // android.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
super.onViewCreated(view, bundle);
Activity activity = getActivity();
this.a = view.findViewById(R.id.backgroundView);
this.d = view.findViewById(R.id.contentLayout);
this.c = (FrameLayout) view.findViewById(R.id.iconFrameLayout);
this.e = (ImageView) view.findViewById(R.id.iconImageView);
this.g = (TextView) view.findViewById(R.id.messageTextView);
float e = db.e() * db.d();
int a = db.a();
int round = Math.round(av.b(80) * db.bj() * e);
int round2 = Math.round(av.b(-55) * e);
int round3 = Math.round(e * 24.0f);
Typeface typeface = FaceTecSDK.c.j.messageFont;
int d = db.d(activity, db.K());
getActivity();
int aT = db.aT();
int aS = db.aS();
int aV = db.aV();
if (aS != 0) {
this.e.setImageDrawable(av.e(getActivity(), aS));
this.i = true;
} else if (aV != 0) {
this.e.setImageDrawable(nMh.getDrawable(activity, aV));
} else if (aT != 0) {
this.e.setImageDrawable(nMh.getDrawable(activity, aT));
} else {
this.e.setVisibility(8);
}
this.d.setTranslationY(round2);
this.c.getLayoutParams().height = round;
this.c.getLayoutParams().width = round;
((RelativeLayout.LayoutParams) this.c.getLayoutParams()).setMargins(0, a, 0, 0);
cx.e(this.g, R.string.FaceTec_idscan_additional_review_message);
this.g.setTextColor(d);
this.g.setTypeface(typeface);
this.g.setTextSize(round3);
((RelativeLayout.LayoutParams) this.g.getLayoutParams()).setMargins(0, a, 0, a);
db.d(this.a);
this.a.getBackground().setAlpha(db.aU());
c(new Runnable(this) { // from class: com.facetec.sdk.b$$ExternalSyntheticLambda1
public final b f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e();
}
{
this.f$0 = this;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e() {
a(new Runnable(this) { // from class: com.facetec.sdk.b$$ExternalSyntheticLambda2
public final b f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.b();
}
{
this.f$0 = this;
}
}, 1000L);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b() {
if (this.i) {
((AnimatedVectorDrawableCompat) this.e.getDrawable()).start();
}
this.d.animate().alpha(1.0f).setDuration(500L).setListener(null).withEndAction(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.b$$ExternalSyntheticLambda0
public final b f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.c();
}
{
this.f$0 = this;
}
})).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c() {
a(new Runnable(this) { // from class: com.facetec.sdk.b$$ExternalSyntheticLambda3
public final b f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.a();
}
{
this.f$0 = this;
}
}, 1500L);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void a() {
this.d.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setListener(null).withEndAction(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.b$$ExternalSyntheticLambda4
public final b f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.d();
}
{
this.f$0 = this;
}
})).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void d() {
bg bgVar = (bg) getActivity();
if (bgVar != null) {
t.a(bgVar, d.ADDITIONAL_REVIEW_BUTTON_PRESSED, (String) null);
bgVar.z();
}
}
}