|
|
@ -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() {
|
|
|
|