From 73f089333b30fae9f41f68f546eab08bd1088a5a Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Wed, 20 Mar 2019 09:28:35 -0700 Subject: [PATCH] Pass the location permission not group to MANAGE_APP_PERMISSION. I changed the API to support passing in a permission. Test: Click on entry and open its permission toggle screen. Test: atest RecentLocationAccessPreferenceControllerTest Change-Id: I0f789c9e2a05f4b5b03efab6a7dcdb218e565b52 --- .../location/RecentLocationAccessPreferenceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/location/RecentLocationAccessPreferenceController.java b/src/com/android/settings/location/RecentLocationAccessPreferenceController.java index a76d3814183..e4c64f7adc1 100644 --- a/src/com/android/settings/location/RecentLocationAccessPreferenceController.java +++ b/src/com/android/settings/location/RecentLocationAccessPreferenceController.java @@ -104,7 +104,7 @@ public class RecentLocationAccessPreferenceController extends AbstractPreference .setOnClickListener((v) -> { final Intent intent = new Intent(Intent.ACTION_MANAGE_APP_PERMISSION); intent.putExtra(Intent.EXTRA_PERMISSION_NAME, - Manifest.permission_group.LOCATION); + Manifest.permission.ACCESS_FINE_LOCATION); intent.putExtra(Intent.EXTRA_PACKAGE_NAME, access.packageName); intent.putExtra(Intent.EXTRA_USER, access.userHandle); mContext.startActivity(intent);