Skip to content

Commit

Permalink
Tests require ACCESS_BACKGROUND_LOCATION as well.
Browse files Browse the repository at this point in the history
Introduced in 3910837
  • Loading branch information
dennisguse committed Aug 8, 2023
1 parent 7530e1d commit 6f84384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/androidTest/java/de/dennisguse/opentracks/TestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public class TestUtil {

public static GrantPermissionRule createGrantPermissionRule() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
return GrantPermissionRule.grant(android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.BLUETOOTH_CONNECT, Manifest.permission.POST_NOTIFICATIONS);
return GrantPermissionRule.grant(android.Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION, android.Manifest.permission.BLUETOOTH_CONNECT, Manifest.permission.POST_NOTIFICATIONS);
}
return GrantPermissionRule.grant(android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.BLUETOOTH_CONNECT);
return GrantPermissionRule.grant(android.Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION, android.Manifest.permission.BLUETOOTH_CONNECT);
}
}

0 comments on commit 6f84384

Please sign in to comment.