正在查看: Kredinesia v8.3.1 应用的 LivenessActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kredinesia v8.3.1 应用的 LivenessActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.izilab.liveness.api;
import A6.ViewOnClickListenerC0037g;
import H7.a;
import android.R;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.Toolbar;
import b0.d;
import com.izilab.widget.LivenessPreview;
import e6.EnumC1255a;
import f6.InterfaceC1299e;
import g.AbstractActivityC1315g;
import java.util.ArrayList;
import kotlin.jvm.internal.i;
import y8.C2074h;
public final class LivenessActivity extends AbstractActivityC1315g implements InterfaceC1299e {
public static final int f9464S = 0;
public LivenessPreview f9465P;
public TextView f9466Q;
public AppCompatImageView f9467R;
public TextView f9468b;
public Toolbar f9469c;
public View f9470d;
public final TextView m() {
TextView textView = this.f9466Q;
if (textView != null) {
return textView;
}
i.l("mGuideTextView");
throw null;
}
public final LivenessPreview n() {
LivenessPreview livenessPreview = this.f9465P;
if (livenessPreview != null) {
return livenessPreview;
}
i.l("mLivenessPreview");
throw null;
}
@Override
public final void onBackPressed() {
setResult(0);
finish();
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
try {
WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.screenBrightness = 1.0f;
getWindow().setAttributes(attributes);
} catch (Exception e10) {
e10.printStackTrace();
}
setContentView(2131493041);
View findViewById = findViewById(2131296777);
i.e(findViewById, "findViewById(R.id.guide)");
this.f9466Q = (TextView) findViewById;
View findViewById2 = findViewById(2131297417);
i.e(findViewById2, "findViewById(R.id.toolbar)");
this.f9469c = (Toolbar) findViewById2;
View findViewById3 = findViewById(2131296460);
i.e(findViewById3, "findViewById(R.id.camera_preview)");
this.f9465P = (LivenessPreview) findViewById3;
View findViewById4 = findViewById(2131296777);
i.e(findViewById4, "findViewById(R.id.guide)");
this.f9468b = (TextView) findViewById4;
View findViewById5 = findViewById(2131296894);
i.e(findViewById5, "findViewById(R.id.main)");
setMMainContainer(findViewById5);
View findViewById6 = findViewById(2131297449);
i.e(findViewById6, "findViewById(R.id.user_guide_icon)");
this.f9467R = (AppCompatImageView) findViewById6;
int intExtra = getIntent().getIntExtra("title_color", d.a(this, R.color.black));
Toolbar toolbar = this.f9469c;
if (toolbar == null) {
i.l("mToolBar");
throw null;
}
toolbar.setTitleTextColor(intExtra);
Toolbar toolbar2 = this.f9469c;
if (toolbar2 == null) {
i.l("mToolBar");
throw null;
}
toolbar2.setNavigationIcon(C2074h.p(this, intExtra));
int intExtra2 = getIntent().getIntExtra("key_bg_color", d.a(this, R.color.white));
View view = this.f9470d;
if (view == null) {
i.l("mMainContainer");
throw null;
}
view.setBackgroundColor(intExtra2);
int intExtra3 = getIntent().getIntExtra("guide_color", d.a(this, 2131099709));
TextView textView = this.f9468b;
if (textView == null) {
i.l("mGuideText");
throw null;
}
textView.setTextColor(intExtra3);
Toolbar toolbar3 = this.f9469c;
if (toolbar3 == null) {
i.l("mToolBar");
throw null;
}
toolbar3.setNavigationOnClickListener(new ViewOnClickListenerC0037g(15, this));
float floatExtra = getIntent().getFloatExtra("percent", 0.7f);
ViewGroup.LayoutParams layoutParams = n().getLayoutParams();
i.d(layoutParams, "null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
W.d dVar = (W.d) layoutParams;
dVar.f4698R = floatExtra;
n().setLayoutParams(dVar);
int intExtra4 = getIntent().getIntExtra("progress_color", d.a(this, 2131099709));
ArrayList<String> stringArrayListExtra = getIntent().getStringArrayListExtra("action_list");
boolean booleanExtra = getIntent().getBooleanExtra("audio", true);
n().setProgressBarColor(intExtra4);
n().setLicense(getIntent().getStringExtra("license"));
int i4 = 0;
if (!booleanExtra) {
n().f9525n0 = false;
}
if (stringArrayListExtra != null && stringArrayListExtra.size() > 0) {
ArrayList<EnumC1255a> arrayList = new ArrayList<>();
int size = stringArrayListExtra.size();
while (i4 < size) {
String str = stringArrayListExtra.get(i4);
i4++;
String it = str;
i.e(it, "it");
arrayList.add(EnumC1255a.valueOf(it));
}
n().setActionList(arrayList);
}
LivenessPreview n6 = n();
AppCompatImageView appCompatImageView = this.f9467R;
if (appCompatImageView == null) {
i.l("mUserGuideIconView");
throw null;
}
n6.setUserGuideView(appCompatImageView);
n().setLivenessPreivewCallback(this);
new a(1, n()).invoke();
}
public final void setMMainContainer(View view) {
i.f(view, "<set-?>");
this.f9470d = view;
}
}