Sunbit v2.4.4版本的 MD5 值为:a5021e5e2a58eb1d6741b432fe7533c4
以下内容为反编译后的 Cdo.java 源代码,内容仅作参考
package com.iproov.sdk.ui.activity;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.accessibility.AccessibilityManager;
import android.view.animation.AnimationUtils;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;
import androidx.appcompat.widget.SwitchCompat;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import com.iproov.sdk.IProov;
import com.iproov.sdk.R;
import com.iproov.sdk.cameray.Orientation;
import com.iproov.sdk.core.p008private.Cif;
import com.iproov.sdk.graphics.iproov.OpenGLRenderer;
import com.iproov.sdk.logging.IPLog;
import com.iproov.sdk.p000break.Cconst;
import com.iproov.sdk.p000break.Cfinal;
import com.iproov.sdk.p000break.Csuper;
import com.iproov.sdk.p018new.Cfor;
import com.iproov.sdk.ui.views.LivenessDebugOverlay;
import com.iproov.sdk.ui.views.OverlayView;
import com.iproov.sdk.ui.views.ProgressView;
import io.bibeex.contract.common.c;
public class Cdo extends Activity implements com.iproov.sdk.ui.activity.Cif, Cif.Cgoto {
private static final String f910finally = Cdo.class.getSimpleName();
private View f911break;
private TextView f912case;
private com.iproov.sdk.p018new.Cfor f913catch;
private com.iproov.sdk.core.Cif f914class;
private com.iproov.sdk.p018new.Cnew f915const;
private com.iproov.sdk.core.p005extends.Cdo f916default;
private OverlayView f917do;
private ProgressView f918else;
private AccessibilityManager f919extends;
private IProov.Options f920final;
private ImageView f921for;
private LivenessDebugOverlay f922goto;
private ImageView f923if;
private GestureDetector f924import;
private Cfinal f925native;
private TextView f926new;
private Cfinal f927public;
private Cfinal f928return;
private OpenGLRenderer f929static;
private boolean f930super = false;
private com.iproov.sdk.core.p008private.Cdo f931switch = null;
private SwitchCompat f932this;
private CountDownTimer f933throw;
private Cfor f934throws;
private TextView f935try;
private com.iproov.sdk.p014goto.Cif f936while;
public class CountDownTimerC0085do extends CountDownTimer {
int f937do;
CountDownTimerC0085do(long j2, long j3) {
super(j2, j3);
this.f937do = 2;
}
@Override
public void onFinish() {
Cdo.this.f933throw.cancel();
Cdo.this.f933throw = null;
Cdo.this.f918else.m984do();
Cdo.this.f918else.setProgress(33);
Cdo.this.f914class.m443native();
}
@Override
public void onTick(long j2) {
int i2 = this.f937do;
this.f937do = i2 - 1;
Cdo.this.f926new.announceForAccessibility(Integer.toString(i2));
}
}
public enum Cfor {
GPA_INIT_NO_SUPPLEMENTARY,
GPA_INIT_SUPPLEMENTARY,
GPA_SUPPLEMENTARY_FRAME,
GPA_FACE,
GPA_NO_FACE,
GPA_FLASHING_STARTING,
LIVENESS_SUPPLEMENTARY_FRAME,
LIVENESS_SCAN,
LIVENESS_STOP_SCAN,
LIVENESS_FINISH
}
public static class Cif {
static final int[] f950do;
static final int[] f951for;
static final int[] f952if;
static {
int[] iArr = new int[Cfor.values().length];
f951for = iArr;
try {
iArr[Cfor.GPA_INIT_NO_SUPPLEMENTARY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
f951for[Cfor.GPA_INIT_SUPPLEMENTARY.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
f951for[Cfor.GPA_SUPPLEMENTARY_FRAME.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
f951for[Cfor.GPA_FACE.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
f951for[Cfor.GPA_NO_FACE.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
f951for[Cfor.GPA_FLASHING_STARTING.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
f951for[Cfor.LIVENESS_SUPPLEMENTARY_FRAME.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
f951for[Cfor.LIVENESS_SCAN.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
try {
f951for[Cfor.LIVENESS_STOP_SCAN.ordinal()] = 9;
} catch (NoSuchFieldError unused9) {
}
try {
f951for[Cfor.LIVENESS_FINISH.ordinal()] = 10;
} catch (NoSuchFieldError unused10) {
}
int[] iArr2 = new int[com.iproov.sdk.core.p008private.Cdo.values().length];
f952if = iArr2;
try {
iArr2[com.iproov.sdk.core.p008private.Cdo.END_FACE_PATH.ordinal()] = 1;
} catch (NoSuchFieldError unused11) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.READY.ordinal()] = 2;
} catch (NoSuchFieldError unused12) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.FACE_PATH.ordinal()] = 3;
} catch (NoSuchFieldError unused13) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.NO_FACE_PATH.ordinal()] = 4;
} catch (NoSuchFieldError unused14) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.TOO_FAR_FACE_PATH.ordinal()] = 5;
} catch (NoSuchFieldError unused15) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.TOO_CLOSE_FACE_PATH.ordinal()] = 6;
} catch (NoSuchFieldError unused16) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.NO_FACE.ordinal()] = 7;
} catch (NoSuchFieldError unused17) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.TOO_FAR.ordinal()] = 8;
} catch (NoSuchFieldError unused18) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.TOO_CLOSE.ordinal()] = 9;
} catch (NoSuchFieldError unused19) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.TOO_BRIGHT.ordinal()] = 10;
} catch (NoSuchFieldError unused20) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.ROLL_TOO_HIGH.ordinal()] = 11;
} catch (NoSuchFieldError unused21) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.ROLL_TOO_LOW.ordinal()] = 12;
} catch (NoSuchFieldError unused22) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.YAW_TOO_HIGH.ordinal()] = 13;
} catch (NoSuchFieldError unused23) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.YAW_TOO_LOW.ordinal()] = 14;
} catch (NoSuchFieldError unused24) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.PITCH_TOO_LOW.ordinal()] = 15;
} catch (NoSuchFieldError unused25) {
}
try {
f952if[com.iproov.sdk.core.p008private.Cdo.PITCH_TOO_HIGH.ordinal()] = 16;
} catch (NoSuchFieldError unused26) {
}
int[] iArr3 = new int[com.iproov.sdk.core.p005extends.Cdo.values().length];
f950do = iArr3;
try {
iArr3[com.iproov.sdk.core.p005extends.Cdo.f361do.ordinal()] = 1;
} catch (NoSuchFieldError unused27) {
}
try {
f950do[com.iproov.sdk.core.p005extends.Cdo.f363if.ordinal()] = 2;
} catch (NoSuchFieldError unused28) {
}
}
}
private class Cnew extends GestureDetector.SimpleOnGestureListener {
private Cnew() {
}
@Override
public boolean onSingleTapConfirmed(MotionEvent motionEvent) {
Cdo.this.m919case();
Cdo.this.f914class.m443native();
return true;
}
Cnew(Cdo cdo, CountDownTimerC0085do countDownTimerC0085do) {
this();
}
}
public void m918break() {
this.f928return = new Cfinal(2000L, true, new Runnable() {
@Override
public final void run() {
Cdo.this.m942switch();
}
});
}
public void m919case() {
CountDownTimer countDownTimer = this.f933throw;
if (countDownTimer != null) {
countDownTimer.cancel();
this.f933throw = null;
}
m943this();
}
public void m920catch() {
this.f917do.setScanLineType(com.iproov.sdk.ui.views.Cfor.INSIDE_OVAL_ONLY);
this.f917do.m980if(true, true);
}
public void m921class() {
com.iproov.sdk.core.p008private.Cdo m515new;
m951do(Cfor.LIVENESS_STOP_SCAN);
com.iproov.sdk.core.p008private.Cif m437case = this.f914class.m437case();
if ((m437case instanceof Cif.C0081if) && ((m515new = ((Cif.C0081if) m437case).m515new()) == com.iproov.sdk.core.p008private.Cdo.TOO_FAR_FACE_PATH || m515new == com.iproov.sdk.core.p008private.Cdo.TOO_CLOSE_FACE_PATH)) {
m942switch();
}
this.f927public = new Cfinal(2000L, false, new Runnable() {
@Override
public final void run() {
Cdo.this.m918break();
}
});
}
private void m922const() {
this.f915const = new com.iproov.sdk.p018new.Cnew(getWindow());
this.f913catch = new com.iproov.sdk.p018new.Cfor(this);
if (!this.f920final.ui.enableScreenshots) {
getWindow().setFlags(8192, 8192);
}
this.f915const.m796do(true);
this.f915const.m797if(true);
}
private void m930final() {
this.f918else.m985do(0, 100L);
}
private void m932goto() {
if (!this.f920final.ui.orientation.isPortrait()) {
this.f935try.setMaxLines(1);
}
this.f923if.setVisibility(this.f936while.m681new() ? 0 : 4);
this.f932this.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z) {
Cdo.this.m927do(compoundButton, z);
}
});
this.f932this.setChecked(this.f936while.m682try());
this.f932this.setVisibility(this.f936while.m681new() ? 0 : 8);
m939return();
}
private void m935import() {
this.f917do = (OverlayView) findViewById(R.id.iproov__ovalView);
this.f929static = (OpenGLRenderer) findViewById(R.id.iproov__rendererView);
this.f912case = (TextView) findViewById(R.id.iproov__textViewDebug);
this.f923if = (ImageView) findViewById(R.id.iproov__imageHistogramPreView);
this.f918else = (ProgressView) findViewById(R.id.iproov__progressBarCaptureBottom);
this.f921for = (ImageView) findViewById(R.id.iproov__logoImageView);
this.f935try = (TextView) findViewById(R.id.iproov__titleTextView);
this.f926new = (TextView) findViewById(R.id.iproov__promptTextView);
this.f922goto = (LivenessDebugOverlay) findViewById(R.id.iproov__liveness_debug_overlay);
this.f932this = (SwitchCompat) findViewById(R.id.iproov__debugOverlaySwitch);
this.f911break = findViewById(R.id.iproov__header);
}
private void m936native() {
m943this();
this.f926new.announceForAccessibility(Integer.toString(3));
this.f933throw = new CountDownTimerC0085do(2000L, 1000L).start();
this.f918else.m985do(33, 2000L);
}
private void m938public() {
m954else();
this.f925native = new Cfinal(1000L, false, new Runnable() {
@Override
public final void run() {
Cdo.this.m921class();
}
});
}
private void m939return() {
this.f912case.setVisibility(this.f936while.m682try() ? 0 : 4);
this.f923if.setVisibility(this.f936while.m682try() ? 0 : 4);
}
private void m940static() {
this.f913catch.m779for(Cfor.Cdo.COMPLETED);
}
private void m941super() {
this.f935try.setTextColor(this.f920final.ui.headerTextColor);
this.f911break.setBackgroundColor(this.f920final.ui.headerBackgroundColor);
this.f926new.setTextColor(this.f920final.ui.footerTextColor);
ProgressView progressView = this.f918else;
IProov.Options.UI ui = this.f920final.ui;
progressView.setProgressDrawable(Csuper.m52do(ui.footerBackgroundColor, ui.genuinePresenceAssurance.progressBarColor));
}
public void m942switch() {
this.f926new.startAnimation(AnimationUtils.loadAnimation(this, R.anim.iproov__wiggle));
}
private void m943this() {
if (this.f919extends.isEnabled()) {
this.f919extends.interrupt();
}
}
private void m944throw() {
Typeface m36do;
IProov.Options.UI ui = this.f920final.ui;
int i2 = ui.fontResource;
if (i2 != -1) {
m36do = Cconst.m35do(this, i2);
} else {
String str = ui.fontPath;
m36do = (str == null || str.isEmpty()) ? null : Cconst.m36do(this, this.f920final.ui.fontPath);
}
if (m36do == null) {
return;
}
Cconst.m37do(this.f926new, m36do);
Cconst.m37do(this.f935try, m36do);
}
private void m946while() {
((View) this.f935try.getParent()).setVisibility(4);
((View) this.f926new.getParent()).setBackgroundColor(0);
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
return this.f924import.onTouchEvent(motionEvent) || super.dispatchTouchEvent(motionEvent);
}
@Override
public void mo459do(com.iproov.sdk.core.p008private.Cif cif) {
}
void m954else() {
Cfinal cfinal = this.f925native;
if (cfinal != null) {
cfinal.m43do();
this.f925native = null;
}
Cfinal cfinal2 = this.f927public;
if (cfinal2 != null) {
cfinal2.m43do();
this.f927public = null;
}
Cfinal cfinal3 = this.f928return;
if (cfinal3 != null) {
cfinal3.m43do();
this.f928return = null;
}
}
@Override
public void finish() {
IPLog.d(f910finally, "*** finish() ***");
m954else();
m919case();
this.f914class.m442do((com.iproov.sdk.ui.activity.Cif) null);
super.finish();
}
@Override
public void onBackPressed() {
IPLog.d(f910finally, "*** onBackPressed() ***");
this.f914class.m440const();
super.onBackPressed();
}
@Override
protected void onCreate(Bundle bundle) {
IPLog.d(f910finally, "*** onCreate() ***");
com.iproov.sdk.core.Cif captureManager = IProov.getCaptureManager();
this.f914class = captureManager;
if (captureManager != null) {
this.f920final = captureManager.m447try();
super.onCreate(bundle);
this.f936while = new com.iproov.sdk.p014goto.Cif(this);
this.f924import = new GestureDetector(this, new Cnew(this, null));
setContentView(R.layout.iproov__activity_iproov);
m935import();
this.f914class.m442do(this);
m932goto();
m944throw();
m922const();
m941super();
this.f914class.m441do(this.f929static);
this.f929static.setBackgroundColor(this.f920final.ui.backgroundColor);
this.f919extends = (AccessibilityManager) getSystemService("accessibility");
return;
}
throw new IllegalStateException("Error launching iProov. A common cause of this error is launching iProov from an Activity with android:launchMode=\"singleInstance\". Please either change the launchMode in AndroidManifest.xml, or consider using Option.ui.activityCompatibilityRequestCode and read the FAQ (https://github.com/iProov/android/wiki/Frequently-Asked-Questions).");
}
@Override
protected void onDestroy() {
IPLog.d(f910finally, "*** onDestroy() ***");
this.f914class.m442do((com.iproov.sdk.ui.activity.Cif) null);
this.f917do.m982try();
super.onDestroy();
}
@Override
protected void onPause() {
IPLog.d(f910finally, "*** onPause() ***");
if (!isFinishing() && !this.f930super) {
this.f914class.m440const();
}
this.f930super = false;
super.onPause();
this.f929static.onPause();
}
@Override
public void onRequestPermissionsResult(int i2, @NonNull String[] strArr, @NonNull int[] iArr) {
super.onRequestPermissionsResult(i2, strArr, iArr);
if (i2 != 2001 || iArr.length <= 0) {
return;
}
if (iArr[0] == 0) {
IPLog.d(f910finally, "Camera permission granted");
this.f914class.m439class();
return;
}
IPLog.d(f910finally, "Camera permission denied");
this.f914class.m438catch();
}
@Override
protected void onResume() {
IPLog.d(f910finally, "*** onResume() ***");
super.onResume();
this.f929static.onResume();
}
@Override
protected void onStop() {
IPLog.d(f910finally, "*** onStop() ***");
this.f915const.m797if(false);
this.f915const.m796do(false);
super.onStop();
}
private void m934if(String str) {
this.f935try.setVisibility(0);
if (!str.equals(this.f935try.getText().toString())) {
this.f935try.announceForAccessibility(str);
}
this.f935try.setText(str);
}
@Override
public void mo955for() {
this.f913catch.m779for(Cfor.Cdo.FACE_FOUND);
}
@Override
public Orientation mo957new() {
return Orientation.findByDegrees(getWindowManager().getDefaultDisplay().getRotation() * 90);
}
@Override
public void mo958try() {
int i2 = Cif.f950do[this.f916default.ordinal()];
if (i2 == 1) {
m951do(Cfor.GPA_SUPPLEMENTARY_FRAME);
} else if (i2 != 2) {
} else {
m951do(Cfor.LIVENESS_SUPPLEMENTARY_FRAME);
}
}
public void m927do(CompoundButton compoundButton, boolean z) {
this.f936while.m676do(z);
this.f914class.m445switch();
m939return();
}
private void m928do(TextView textView, int i2) {
if (i2 == -1) {
textView.setText("");
} else {
textView.setText(i2);
}
}
@Override
public LivenessDebugOverlay mo956if() {
return this.f922goto;
}
private void m925do(@StringRes int i2) {
m926do(i2, true);
}
private void m926do(@StringRes int i2, boolean z) {
if (z && i2 != -1 && !getString(i2).equals(this.f926new.getText().toString())) {
m943this();
this.f926new.announceForAccessibility(getString(i2));
}
m928do(this.f926new, i2);
}
private void m929do(IProov.Options.UI ui) {
if (ui.logoImageResource != -1) {
this.f921for.setImageResource(this.f920final.ui.logoImageResource);
} else if (ui.logoImageDrawable != null) {
this.f921for.setImageDrawable(this.f920final.ui.logoImageDrawable);
}
}
@Override
public void mo952do(String str) {
if (this.f936while.m682try()) {
this.f912case.setText(str);
}
}
@Override
public void mo949do(Bitmap bitmap) {
if (bitmap == null) {
this.f923if.setVisibility(4);
return;
}
this.f923if.setVisibility(0);
this.f923if.setImageBitmap(bitmap);
this.f923if.destroyDrawingCache();
}
@Override
public void mo947do() {
if (ContextCompat.checkSelfPermission(this, "android.permission.CAMERA") != 0) {
this.f930super = true;
}
ActivityCompat.requestPermissions(this, new String[]{"android.permission.CAMERA"}, c.e.af);
}
@Override
public void mo948do(double d2) {
this.f915const.m795do((float) d2);
}
@Override
public void mo950do(com.iproov.sdk.core.p005extends.Cdo cdo, boolean z) {
this.f916default = cdo;
if (cdo == com.iproov.sdk.core.p005extends.Cdo.f361do) {
if (z) {
m951do(Cfor.GPA_INIT_SUPPLEMENTARY);
} else {
m951do(Cfor.GPA_INIT_NO_SUPPLEMENTARY);
}
}
}
@Override
public void mo953do(boolean z) {
if (z) {
m954else();
m951do(Cfor.LIVENESS_FINISH);
m940static();
return;
}
m938public();
m951do(Cfor.LIVENESS_SCAN);
}
@Override
public void mo456do(Cif.Cnew cnew) {
this.f935try.setVisibility(8);
m925do(R.string.iproov__prompt_connecting);
}
@Override
public void mo454do(Cif.Cfor cfor) {
String m514new = cfor.m514new();
if (m514new != null) {
m934if(m514new);
}
m929do(this.f920final.ui);
}
@Override
public void mo455do(Cif.C0081if c0081if) {
com.iproov.sdk.core.p008private.Cdo m515new = c0081if.m515new();
com.iproov.sdk.core.p008private.Cdo cdo = this.f931switch;
if (cdo == null || cdo != m515new) {
switch (Cif.f952if[m515new.ordinal()]) {
case 1:
m951do(Cfor.LIVENESS_FINISH);
this.f917do.m979if(new Runnable() {
@Override
public final void run() {
Cdo.this.finish();
}
});
break;
case 2:
if (!this.f920final.ui.genuinePresenceAssurance.autoStartDisabled && this.f933throw == null) {
m936native();
}
m951do(Cfor.GPA_FACE);
this.f913catch.m779for(Cfor.Cdo.FACE_FOUND);
break;
case 3:
case 4:
case 5:
case 6:
break;
default:
if (this.f933throw != null) {
m919case();
m930final();
}
m951do(Cfor.GPA_NO_FACE);
break;
}
this.f931switch = m515new;
}
switch (Cif.f952if[m515new.ordinal()]) {
case 1:
m925do(R.string.iproov__prompt_liveness_scan_completed);
return;
case 2:
if (this.f920final.ui.genuinePresenceAssurance.autoStartDisabled) {
m925do(R.string.iproov__prompt_tap_to_begin);
return;
} else {
m926do(R.string.iproov__prompt_get_ready, false);
return;
}
case 3:
m925do(R.string.iproov__prompt_liveness_align_face);
return;
case 4:
m925do(R.string.iproov__prompt_liveness_no_target);
return;
case 5:
m925do(R.string.iproov__prompt_too_far);
return;
case 6:
m925do(R.string.iproov__prompt_too_close);
return;
case 7:
m925do(R.string.iproov__prompt_genuine_presence_align_face);
return;
case 8:
m925do(R.string.iproov__prompt_too_far);
return;
case 9:
m925do(R.string.iproov__prompt_too_close);
return;
case 10:
m925do(R.string.iproov__prompt_too_bright);
return;
case 11:
m925do(R.string.iproov__prompt_roll_too_high);
return;
case 12:
m925do(R.string.iproov__prompt_roll_too_low);
return;
case 13:
m925do(R.string.iproov__prompt_yaw_too_high);
return;
case 14:
m925do(R.string.iproov__prompt_yaw_too_low);
return;
case 15:
m925do(R.string.iproov__prompt_pitch_too_low);
return;
case 16:
m925do(R.string.iproov__prompt_pitch_too_high);
return;
default:
return;
}
}
@Override
public void mo453do(Cif.Celse celse) {
if (celse.m511case()) {
this.f913catch.m779for(Cfor.Cdo.START_FLASHING);
m925do(R.string.iproov__prompt_scanning);
m951do(Cfor.GPA_FLASHING_STARTING);
m946while();
return;
}
this.f918else.m985do((int) ((celse.m513try() * 66.6d) + 33.3d), celse.m512new());
}
@Override
public void mo457do(Cif.Cthis cthis) {
if (this.f914class.m444new() == com.iproov.sdk.core.p005extends.Cdo.f361do) {
finish();
}
}
@Override
public void mo451do(Cif.Ccase ccase) {
finish();
}
@Override
public void mo458do(Cif.Ctry ctry) {
finish();
}
@Override
public void mo452do(Cif.Cdo cdo) {
finish();
}
public void m951do(Cfor cfor) {
Cfor cfor2 = this.f934throws;
if (cfor2 == cfor) {
return;
}
if (cfor == Cfor.LIVENESS_SUPPLEMENTARY_FRAME && (cfor2 == Cfor.LIVENESS_SCAN || cfor2 == Cfor.LIVENESS_STOP_SCAN || cfor2 == Cfor.LIVENESS_FINISH)) {
return;
}
switch (Cif.f951for[cfor.ordinal()]) {
case 1:
this.f917do.setFGColor(this.f920final.ui.genuinePresenceAssurance.notReadyTintColor);
this.f917do.setBGColor(this.f920final.ui.genuinePresenceAssurance.notReadyTintColor);
this.f917do.setOvalVisible(true);
this.f917do.setReticleVisible(true);
this.f917do.m977do(false, false);
this.f917do.m980if(false, false);
break;
case 2:
this.f917do.setFGColor(this.f920final.ui.genuinePresenceAssurance.notReadyTintColor);
this.f917do.setBGColor(this.f920final.ui.genuinePresenceAssurance.notReadyTintColor);
break;
case 3:
this.f917do.setScanLineType(com.iproov.sdk.ui.views.Cfor.OUTSIDE_OVAL_ONLY);
this.f917do.setOvalVisible(true);
this.f917do.setReticleVisible(true);
this.f917do.m977do(false, false);
this.f917do.m980if(true, true);
break;
case 4:
this.f917do.setFGColor(this.f920final.ui.genuinePresenceAssurance.readyTintColor);
this.f917do.setBGColor(this.f920final.ui.genuinePresenceAssurance.readyTintColor);
this.f917do.m978for();
break;
case 5:
this.f917do.setFGColor(this.f920final.ui.genuinePresenceAssurance.notReadyTintColor);
this.f917do.setBGColor(this.f920final.ui.genuinePresenceAssurance.notReadyTintColor);
this.f917do.m981new();
break;
case 6:
this.f917do.setFGColor(ContextCompat.getColor(this, R.color.iproov__white));
this.f917do.setBGColor(ContextCompat.getColor(this, 17170445));
this.f917do.m980if(false, true);
this.f917do.setAlpha(0.5f);
this.f917do.setReticleVisible(false);
break;
case 7:
this.f917do.setFGColor(this.f920final.ui.livenessAssurance.primaryTintColor);
this.f917do.setBGColor(this.f920final.ui.livenessAssurance.secondaryTintColor);
this.f917do.setScanLineType(com.iproov.sdk.ui.views.Cfor.FULLSCREEN);
this.f917do.setOvalVisible(false);
this.f917do.setReticleVisible(false);
this.f917do.m980if(true, true);
this.f917do.m977do(false, false);
break;
case 8:
this.f917do.setFGColor(this.f920final.ui.livenessAssurance.primaryTintColor);
this.f917do.setBGColor(this.f920final.ui.livenessAssurance.secondaryTintColor);
this.f917do.m977do(false, true);
this.f917do.m976do(new Runnable() {
@Override
public final void run() {
Cdo.this.m920catch();
}
});
break;
case 9:
this.f917do.setFGColor(this.f920final.ui.livenessAssurance.primaryTintColor);
this.f917do.setBGColor(this.f920final.ui.livenessAssurance.secondaryTintColor);
this.f917do.m980if(false, true);
this.f917do.m977do(true, true);
break;
case 10:
this.f917do.setFGColor(this.f920final.ui.livenessAssurance.primaryTintColor);
this.f917do.setBGColor(this.f920final.ui.livenessAssurance.primaryTintColor);
this.f917do.m980if(false, false);
this.f917do.m977do(false, false);
this.f917do.m978for();
break;
}
this.f934throws = cfor;
}
}