From 6f8438422a605110a17bb80edfff0fe1b242c855 Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Tue, 8 Aug 2023 18:28:01 +0200 Subject: [PATCH] Tests require ACCESS_BACKGROUND_LOCATION as well. Introduced in 3910837d1aa3308738351c91208fa3b0d7ec1710 --- src/androidTest/java/de/dennisguse/opentracks/TestUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/androidTest/java/de/dennisguse/opentracks/TestUtil.java b/src/androidTest/java/de/dennisguse/opentracks/TestUtil.java index 947c6084a2..c46115694e 100644 --- a/src/androidTest/java/de/dennisguse/opentracks/TestUtil.java +++ b/src/androidTest/java/de/dennisguse/opentracks/TestUtil.java @@ -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); } }