Skip to content

Commit 6a1d8e3

Browse files
committed
call start() at the end of setUsingCamera2Api()
1 parent 2baee2b commit 6a1d8e3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

android/src/main/java/com/google/android/cameraview/CameraView.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,7 @@ public void setUsingCamera2Api(boolean useCamera2) {
273273
}
274274
mImpl = new Camera1(mCallbacks, mImpl.mPreview);
275275
}
276-
onRestoreInstanceState(state);
277-
if (wasOpened) {
278-
start();
279-
}
276+
start();
280277
}
281278

282279
/**

0 commit comments

Comments
 (0)