40 lines
1.3 KiB
Java
40 lines
1.3 KiB
Java
package c.o.a.n;
|
|
|
|
import c.o.a.b;
|
|
import com.otaliastudios.cameraview.CameraException;
|
|
import com.otaliastudios.cameraview.CameraView;
|
|
/* compiled from: CameraEngine */
|
|
public class j implements Runnable {
|
|
public final /* synthetic */ Throwable i;
|
|
public final /* synthetic */ i j;
|
|
|
|
public j(i iVar, Throwable th) {
|
|
this.j = iVar;
|
|
this.i = th;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
Throwable th = this.i;
|
|
if (th instanceof CameraException) {
|
|
CameraException cameraException = (CameraException) th;
|
|
if (cameraException.a()) {
|
|
i.i.a(3, "EXCEPTION:", "Got CameraException. Since it is unrecoverable, executing destroy(false).");
|
|
this.j.d(false, 0);
|
|
}
|
|
i.i.a(3, "EXCEPTION:", "Got CameraException. Dispatching to callback.");
|
|
((CameraView.b) this.j.l).a(cameraException);
|
|
return;
|
|
}
|
|
b bVar = i.i;
|
|
bVar.a(3, "EXCEPTION:", "Unexpected error! Executing destroy(true).");
|
|
this.j.d(true, 0);
|
|
bVar.a(3, "EXCEPTION:", "Unexpected error! Throwing.");
|
|
Throwable th2 = this.i;
|
|
if (th2 instanceof RuntimeException) {
|
|
throw ((RuntimeException) th2);
|
|
}
|
|
throw new RuntimeException(this.i);
|
|
}
|
|
}
|