Commit 2e4e84d4 by emarwil-cr Committed by GitHub

Issue 793 (#794)

* Fixed misplaced 'break' statement

* Updated version to 9.0.2 and added changelog entry
parent 130ea818
## 9.0.2
* Fixes regression when requesting 'locationAlways' permission on Andriod 9 (Pie) and earlier.
## 9.0.1 ## 9.0.1
* Fixes bug when requesting `locationAlways` permissions on Android. * Fixes bug when requesting `locationAlways` permissions on Android.
......
...@@ -115,8 +115,8 @@ public class PermissionUtils { ...@@ -115,8 +115,8 @@ public class PermissionUtils {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
if (hasPermissionInManifest(context, permissionNames, Manifest.permission.ACCESS_BACKGROUND_LOCATION)) if (hasPermissionInManifest(context, permissionNames, Manifest.permission.ACCESS_BACKGROUND_LOCATION))
permissionNames.add(Manifest.permission.ACCESS_BACKGROUND_LOCATION); permissionNames.add(Manifest.permission.ACCESS_BACKGROUND_LOCATION);
break;
} }
break;
case PermissionConstants.PERMISSION_GROUP_LOCATION_WHEN_IN_USE: case PermissionConstants.PERMISSION_GROUP_LOCATION_WHEN_IN_USE:
case PermissionConstants.PERMISSION_GROUP_LOCATION: case PermissionConstants.PERMISSION_GROUP_LOCATION:
if (hasPermissionInManifest(context, permissionNames, Manifest.permission.ACCESS_COARSE_LOCATION)) if (hasPermissionInManifest(context, permissionNames, Manifest.permission.ACCESS_COARSE_LOCATION))
......
name: permission_handler name: permission_handler
description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions. description: Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
version: 9.0.1 version: 9.0.2
homepage: https://github.com/baseflowit/flutter-permission-handler homepage: https://github.com/baseflowit/flutter-permission-handler
flutter: flutter:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment