Merge pull request #19 from Skalaw/fix_issue_13

Fix issue #13
pull/30/head
Florent CHAMPIGNY 8 years ago committed by GitHub
commit 11e0d0c4a6
  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