pull/19/head
Skalaw 8 years ago
parent 30914b09a9
commit 9aa83a1527
  1. 2
      app/src/main/java/com/github/florent37/camerafragment/sample/MainActivity.java

@ -159,7 +159,7 @@ public class MainActivity extends AppCompatActivity {
.setCamera(Configuration.CAMERA_FACE_REAR).build()); .setCamera(Configuration.CAMERA_FACE_REAR).build());
getSupportFragmentManager().beginTransaction() getSupportFragmentManager().beginTransaction()
.replace(R.id.content, cameraFragment, FRAGMENT_TAG) .replace(R.id.content, cameraFragment, FRAGMENT_TAG)
.commit(); .commitAllowingStateLoss();
if (cameraFragment != null) { if (cameraFragment != null) {
//cameraFragment.setResultListener(new CameraFragmentResultListener() { //cameraFragment.setResultListener(new CameraFragmentResultListener() {

Loading…
Cancel
Save