Fixed an NPE, improved thread safety of camera code.

This commit is contained in:
akwizgran
2016-10-06 11:53:07 +01:00
parent fc38738428
commit 543304973e
5 changed files with 84 additions and 22 deletions

View File

@@ -1,11 +1,14 @@
package org.briarproject.android.util;
import android.hardware.Camera;
import android.support.annotation.UiThread;
@SuppressWarnings("deprecation")
public interface PreviewConsumer {
@UiThread
void start(Camera camera);
@UiThread
void stop();
}