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

Commit 1328b1f3 authored by Lifu Tang's avatar Lifu Tang
Browse files

Add links to app location permission page

Bug: 121271387
Test: build, flash, and test manually
Change-Id: I188b7113c2421c66b03e8330f141f514991450fe
parent 4b9a6838
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);
            }