Skip to content

Commit

Permalink
Do not fetch manifest location_background manifest name for Android O…
Browse files Browse the repository at this point in the history
…S < Q
  • Loading branch information
ened committed Oct 16, 2019
1 parent 5a2fa53 commit ff730b1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,10 @@ private List<String> getManifestNames(@PermissionGroup int permission) {
break;

case PERMISSION_GROUP_LOCATION_ALWAYS:
if (hasPermissionInManifest(Manifest.permission.ACCESS_BACKGROUND_LOCATION))
permissionNames.add(Manifest.permission.ACCESS_BACKGROUND_LOCATION);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
if (hasPermissionInManifest(Manifest.permission.ACCESS_BACKGROUND_LOCATION))
permissionNames.add(Manifest.permission.ACCESS_BACKGROUND_LOCATION);
}

case PERMISSION_GROUP_LOCATION_WHEN_IN_USE:
case PERMISSION_GROUP_LOCATION:
Expand Down

0 comments on commit ff730b1

Please sign in to comment.