Merge "Pass the location permission not group to MANAGE_APP_PERMISSION."

This commit is contained in:
TreeHugger Robot
2019-03-20 19:03:31 +00:00
committed by Android (Google) Code Review

View File

@@ -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);