146 lines
4.4 KiB
Java
146 lines
4.4 KiB
Java
package io.beid.beidk.c;
|
|
|
|
import android.app.Activity;
|
|
import android.app.Fragment;
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.Paint;
|
|
import android.os.Bundle;
|
|
import android.os.Handler;
|
|
import android.os.Message;
|
|
import android.preference.PreferenceManager;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.RelativeLayout;
|
|
import android.widget.Toast;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import io.beid.beidk.activity.FaceCaptureActivity;
|
|
import o.fPZ;
|
|
import o.fQP;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class a extends Fragment {
|
|
private FaceCaptureActivity b;
|
|
private SharedPreferences c;
|
|
private RelativeLayout d;
|
|
Context e;
|
|
private Activity f;
|
|
private Bitmap j;
|
|
private View m;
|
|
private String s;
|
|
private boolean n = true;
|
|
public boolean a = false;
|
|
private Paint i = new Paint();
|
|
private float g = BitmapDescriptorFactory.HUE_RED;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private float f8091o = BitmapDescriptorFactory.HUE_RED;
|
|
private float k = BitmapDescriptorFactory.HUE_RED;
|
|
private float l = BitmapDescriptorFactory.HUE_RED;
|
|
private Handler h = new Handler(new Handler.Callback(this) { // from class: io.beid.beidk.c.a.3
|
|
private a e;
|
|
|
|
@Override // android.os.Handler.Callback
|
|
public final boolean handleMessage(Message message) {
|
|
if (message.what != 0) {
|
|
return false;
|
|
}
|
|
a.b(this.e);
|
|
this.e.d.setVisibility(8);
|
|
this.e.s = "Verification error, please try again";
|
|
a aVar = this.e;
|
|
a.a(aVar, aVar.s);
|
|
return false;
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
});
|
|
|
|
static /* synthetic */ void a(a aVar, String str) {
|
|
new AnonymousClass2(aVar, str).start();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onResume() {
|
|
this.f.setRequestedOrientation(1);
|
|
super.onResume();
|
|
if (fQP.b().m == fQP.Sts.challenge_first || (fQP.b().m == fQP.Sts.face_first && !fQP.b().b)) {
|
|
this.n = false;
|
|
this.s = "Cannot recognize face!!!";
|
|
new AnonymousClass2(this, "Cannot recognize face!!!").start();
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onStart() {
|
|
super.onStart();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onPause() {
|
|
super.onPause();
|
|
this.f.setRequestedOrientation(10);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
super.onCreateView(layoutInflater, viewGroup, bundle);
|
|
this.b = (FaceCaptureActivity) getActivity();
|
|
this.c = PreferenceManager.getDefaultSharedPreferences(getActivity());
|
|
this.f = getActivity();
|
|
if (this.m == null) {
|
|
this.m = layoutInflater.inflate(fPZ.HBt.fragment_confirmation, viewGroup, false);
|
|
}
|
|
return this.m;
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onAttach(Activity activity) {
|
|
super.onAttach(activity);
|
|
this.f = activity;
|
|
}
|
|
|
|
static /* synthetic */ boolean b(a aVar) {
|
|
aVar.n = false;
|
|
return false;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* renamed from: io.beid.beidk.c.a$2, reason: invalid class name */
|
|
/* loaded from: classes5.dex */
|
|
public final class AnonymousClass2 extends Thread {
|
|
final a b;
|
|
final String c;
|
|
|
|
@Override // java.lang.Thread, java.lang.Runnable
|
|
public final void run() {
|
|
this.b.f.runOnUiThread(new Runnable(this) { // from class: io.beid.beidk.c.a.2.4
|
|
private AnonymousClass2 c;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
Toast.makeText(this.c.b.e, this.c.c, 0).show();
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
AnonymousClass2(a aVar, String str) {
|
|
this.b = aVar;
|
|
this.c = str;
|
|
}
|
|
}
|
|
}
|