what-the-bank/sources/o/NNY.java

92 lines
2.8 KiB
Java

package o;
import android.graphics.Rect;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import o.C17083tlK;
/* loaded from: classes3.dex */
public final class NNY {
public static final String a = "DecoderThread";
public Rect b;
public C12047eqo d;
public sBE g;
Handler h;
public Handler j;
/* renamed from: o, reason: collision with root package name */
public HandlerThread f8284o;
public boolean i = false;
final Object e = new Object();
public final Handler.Callback c = new Handler.Callback(this) { // from class: o.NNY.2
private NNY c;
{
this.c = this;
}
/* JADX WARN: Removed duplicated region for block: B:42:0x0080 */
/* JADX WARN: Removed duplicated region for block: B:47:0x0095 */
@Override // android.os.Handler.Callback
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean handleMessage(android.os.Message r19) {
/*
Method dump skipped, instructions count: 392
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.NNY.AnonymousClass2.handleMessage(android.os.Message):boolean");
}
};
public final InterfaceC17149uMa f = new InterfaceC17149uMa(this) { // from class: o.NNY.3
private NNY d;
{
this.d = this;
}
@Override // o.InterfaceC17149uMa
public final void b(GuZ guZ) {
synchronized (this.d.e) {
if (this.d.i) {
this.d.j.obtainMessage(C17083tlK.LWm.zxing_decode, guZ).sendToTarget();
}
}
}
@Override // o.InterfaceC17149uMa
public final void c() {
synchronized (this.d.e) {
if (this.d.i) {
this.d.j.obtainMessage(C17083tlK.LWm.zxing_preview_failed).sendToTarget();
}
}
}
};
public NNY(C12047eqo c12047eqo, sBE sbe, Handler handler) {
if (Looper.getMainLooper() == Looper.myLooper()) {
this.d = c12047eqo;
this.g = sbe;
this.h = handler;
return;
}
throw new IllegalStateException("Must be called from the main thread.");
}
public final void e() {
if (Looper.getMainLooper() == Looper.myLooper()) {
synchronized (this.e) {
this.i = false;
this.j.removeCallbacksAndMessages(null);
this.f8284o.quit();
}
return;
}
throw new IllegalStateException("Must be called from the main thread.");
}
}