package com.google.zxing.client.android; import android.app.Activity; import android.os.Handler; import android.os.Message; import com.google.zxing.BarcodeFormat; import com.google.zxing.DecodeHintType; import com.google.zxing.client.android.camera.CameraManager; import java.util.Collection; import java.util.Map; /* loaded from: classes.dex */ public final class CaptureActivityHandler extends Handler { private static final String f = CaptureActivityHandler.class.getSimpleName(); private final Activity a; private final ICaptureView b; private final DecodeThread c; private State d; private final CameraManager e; private enum State { PREVIEW, SUCCESS, DONE } public CaptureActivityHandler(Activity activity, ICaptureView iCaptureView, Collection collection, Map map, String str, CameraManager cameraManager) { this.a = activity; this.b = iCaptureView; this.c = new DecodeThread(activity, iCaptureView, collection, map, str, new ViewfinderResultPointCallback(iCaptureView.J())); this.c.start(); this.d = State.SUCCESS; this.e = cameraManager; cameraManager.g(); b(); } private void b() { if (this.d == State.SUCCESS) { this.d = State.PREVIEW; this.e.a(this.c.a(), R$id.decode); this.b.w(); } } public void a() { this.d = State.DONE; this.e.h(); Message.obtain(this.c.a(), R$id.quit).sendToTarget(); try { this.c.join(500L); } catch (InterruptedException unused) { } removeMessages(R$id.decode_succeeded); removeMessages(R$id.decode_failed); } /* JADX WARN: Code restructure failed: missing block: B:44:0x00d5, code lost: if (r4.equals("com.android.browser") != false) goto L40; */ @Override // android.os.Handler /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct code enable 'Show inconsistent code' option in preferences */ public void handleMessage(android.os.Message r8) { /* Method dump skipped, instructions count: 249 To view this dump change 'Code comments level' option to 'DEBUG' */ throw new UnsupportedOperationException("Method not decompiled: com.google.zxing.client.android.CaptureActivityHandler.handleMessage(android.os.Message):void"); } }