Skip to content

Commit 7422918

Browse files
anniek-valkmvanbeusekom
authored andcommitted
Added closeCaptureSession() to stopVideoRecording in Camera.java to fix an Android 6 crash (flutter#3336)
Co-authored-by: Maurits van Beusekom <[email protected]>
1 parent 0c79b3b commit 7422918

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.4+1
2+
3+
* Added closeCaptureSession() to stopVideoRecording in Camera.java to fix an Android 6 crash
4+
15
## 0.6.4
26

37
* Adds auto exposure support for Android and iOS implementations.

packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ public void stopVideoRecording(@NonNull final Result result) {
571571

572572
try {
573573
recordingVideo = false;
574+
closeCaptureSession();
574575
mediaRecorder.stop();
575576
mediaRecorder.reset();
576577
startPreview();

packages/camera/camera/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: A Flutter plugin for getting information about and controlling the
66

77

88

9-
version: 0.6.4
9+
version: 0.6.4+1
1010
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
1111
dependencies:
1212
flutter:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)