57 lines
1.4 KiB
Java
57 lines
1.4 KiB
Java
package c.o.a.v;
|
|
|
|
import android.media.MediaActionSound;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import c.o.a.h;
|
|
import c.o.a.l;
|
|
import c.o.a.n.g;
|
|
import com.otaliastudios.cameraview.CameraView;
|
|
/* compiled from: PictureRecorder */
|
|
public abstract class d {
|
|
@VisibleForTesting(otherwise = 4)
|
|
public l.a i;
|
|
@VisibleForTesting
|
|
public a j;
|
|
public Exception k;
|
|
|
|
/* compiled from: PictureRecorder */
|
|
public interface a {
|
|
void a(@Nullable l.a aVar, @Nullable Exception exc);
|
|
}
|
|
|
|
public d(@NonNull l.a aVar, @Nullable a aVar2) {
|
|
this.i = aVar;
|
|
this.j = aVar2;
|
|
}
|
|
|
|
public void a(boolean z2) {
|
|
CameraView cameraView;
|
|
boolean z3;
|
|
a aVar = this.j;
|
|
if (aVar != null) {
|
|
boolean z4 = !z2;
|
|
CameraView.b bVar = (CameraView.b) ((g) aVar).l;
|
|
if (z4 && (z3 = (cameraView = CameraView.this).k) && z3) {
|
|
if (cameraView.f2508z == null) {
|
|
cameraView.f2508z = new MediaActionSound();
|
|
}
|
|
cameraView.f2508z.play(0);
|
|
}
|
|
CameraView.this.f2505s.post(new h(bVar));
|
|
}
|
|
}
|
|
|
|
public void b() {
|
|
a aVar = this.j;
|
|
if (aVar != null) {
|
|
aVar.a(this.i, this.k);
|
|
this.j = null;
|
|
this.i = null;
|
|
}
|
|
}
|
|
|
|
public abstract void c();
|
|
}
|