File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/in/omerjerk/processing/video/android Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5
5
import java .util .ArrayList ;
6
6
import java .util .List ;
7
7
8
+ import android .app .Activity ;
8
9
import android .graphics .SurfaceTexture ;
9
10
import android .hardware .Camera ;
10
11
import android .hardware .Camera .Size ;
@@ -25,6 +26,8 @@ public class Capture extends PImage implements PConstants,
25
26
CameraHandlerCallback , SurfaceTexture .OnFrameAvailableListener {
26
27
27
28
private static final boolean DEBUG = true ;
29
+
30
+ private Activity activity ;
28
31
29
32
public static void log (String log ) {
30
33
if (DEBUG )
@@ -89,7 +92,8 @@ public void run() {
89
92
}
90
93
});
91
94
// pg.setCache(this, customTexture);
92
- parent .runOnUiThread (new Runnable () {
95
+ activity = parent .getActivity ();
96
+ activity .runOnUiThread (new Runnable () {
93
97
@ Override
94
98
public void run () {
95
99
mCameraHandler = new CameraHandler (Capture .this );
You can’t perform that action at this time.
0 commit comments