Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63820288 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add links to app location permission page"

parents defd0155 1328b1f3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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);
            }