Addresses an issue that could result in permission handler resolving requests from other activities

This commit is contained in:
Miguel Ruivo 2020-04-07 18:30:04 +01:00
parent 53afea6452
commit 8fdecd6b8b
3 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,10 @@
## 1.6.1
* Addresses an issue that could result in permission handler resolving requests from other activities.
## 1.6.0
* Adds multiple file extension filter support. From now on, you _must_ provide a `List` of extensions with type `FileType.custom` when restricting types while pikcing.
* Adds multiple file extension filter support. From now on, you _must_ provide a `List` of extensions with type `FileType.custom` when restricting types while picking.
* Other minor improvements;
## 1.5.1

View File

@ -122,6 +122,11 @@ public class FilePickerDelegate implements PluginRegistry.ActivityResultListener
@Override
public boolean onRequestPermissionsResult(final int requestCode, final String[] permissions, final int[] grantResults) {
if(REQUEST_CODE != requestCode) {
return false;
}
final boolean permissionGranted =
grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED;

View File

@ -1,7 +1,7 @@
name: file_picker
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extension filtering support.
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
version: 1.6.0
version: 1.6.1
dependencies:
flutter: