mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-12 01:58:07 -04:00
add a button for toggling front/rear camera
This commit is contained in:
@@ -39,7 +39,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
|
||||
surfaceHolder.addCallback(this);
|
||||
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
|
||||
canTakePicture = true;
|
||||
setOnTouchListener(this);
|
||||
surfaceView.setOnTouchListener(this);
|
||||
}
|
||||
|
||||
public void setCamera(Camera newCamera) {
|
||||
|
||||
Reference in New Issue
Block a user