Add links to app location permission page
Bug: 121271387 Test: build, flash, and test manually Change-Id: I188b7113c2421c66b03e8330f141f514991450fe
This commit is contained in:
@@ -100,6 +100,14 @@ public class RecentLocationAccessPreferenceController extends AbstractPreference
|
||||
.setIcon(access.icon)
|
||||
.setTitle(access.label)
|
||||
.setSummary(access.contentDescription)
|
||||
.setOnClickListener((v) -> {
|
||||
final Intent intent = new Intent(Intent.ACTION_MANAGE_APP_PERMISSION);
|
||||
intent.putExtra(Intent.EXTRA_PERMISSION_NAME,
|
||||
Manifest.permission_group.LOCATION);
|
||||
intent.putExtra(Intent.EXTRA_PACKAGE_NAME, access.packageName);
|
||||
intent.putExtra(Intent.EXTRA_USER, access.userHandle);
|
||||
mContext.startActivity(intent);
|
||||
})
|
||||
.build();
|
||||
mController.setAppEntity(i, appEntityInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user