Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[camera] Fix capture hang on Android 12 devices (Pixel 6) #4922

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/camera/camera/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ Aleksandr Yurkovskiy <[email protected]>
Anton Borries <[email protected]>
Alex Li <[email protected]>
Rahul Raj <[email protected]>
Andrew Coutts <[email protected]>
3 changes: 3 additions & 0 deletions packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* ## 0.9.4+15
* Fix camera capture on Android 12 devices (Pixel 6) by removing unnecessary calls to abort captures after capture is finished.

## 0.9.4+14

* Restores compatibility with Flutter 2.5 and 2.8.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,6 @@ public void onCaptureCompleted(
};

try {
captureSession.stopRepeating();
captureSession.abortCaptures();
Log.i(TAG, "sending capture request");
captureSession.capture(stillBuilder.build(), captureCallback, backgroundHandler);
} catch (CameraAccessException e) {
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Flutter plugin for controlling the camera. Supports previewing
Dart.
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
version: 0.9.4+14
version: 0.9.4+15

environment:
sdk: ">=2.14.0 <3.0.0"
Expand Down