Skip to content

Commit

Permalink
Request code needs to be below 2^16 for FragmentActivity (flutter#1968)
Browse files Browse the repository at this point in the history
If using FragmentActivity, the requestCode used for startActivityForResult needs to be below 65536. See https://stackoverflow.com/questions/25529865/java-lang-illegalargumentexception-can-only-use-lower-16-bits-for-requestcode.
  • Loading branch information
mehmetf authored and Michael Klimushyn committed Aug 13, 2019
1 parent 61083e1 commit 30cde84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.3+1

* Fix too large request code for FragmentActivity users.

## 0.5.3

* Added new quality presets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import io.flutter.plugin.common.PluginRegistry.Registrar;

public class CameraPermissions {
private static final int CAMERA_REQUEST_ID = 513469796;
private static final int CAMERA_REQUEST_ID = 9796;
private boolean ongoing = false;

public void requestPermissions(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: camera
description: A Flutter plugin for getting information about and controlling the
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
and streaming image buffers to dart.
version: 0.5.3
version: 0.5.3+1

authors:
- Flutter Team <flutter-dev@googlegroups.com>
Expand Down

0 comments on commit 30cde84

Please sign in to comment.