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

Commit 2cea6682 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Catalyst] Fix LocationAccessAppPreference.intent" into main

parents c7369d77 707b1f61
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -99,15 +99,12 @@ private class LocationAccessAppPreference(
        RelativeDateTimeFormatter.Style.LONG
    )

    override fun intent(context: Context): Intent? {
        // TODO(b/418243848): Support UserHandle serialization to enable this Intent
        return null
        // return Intent(Intent.ACTION_MANAGE_APP_PERMISSION).apply {
        //     `package` = context.packageManager.permissionControllerPackageName
        //     putExtra(Intent.EXTRA_PERMISSION_GROUP_NAME, Manifest.permission_group.LOCATION)
        //     putExtra(Intent.EXTRA_PACKAGE_NAME, access.packageName)
        //     putExtra(Intent.EXTRA_USER, context.user)
        // }
    override fun intent(context: Context) =
        Intent(Intent.ACTION_MANAGE_APP_PERMISSION).apply {
            `package` = context.packageManager.permissionControllerPackageName
            putExtra(Intent.EXTRA_PERMISSION_GROUP_NAME, Manifest.permission_group.LOCATION)
            putExtra(Intent.EXTRA_PACKAGE_NAME, access.packageName)
            putExtra(Intent.EXTRA_USER, context.user)
        }

    override fun extras(context: Context): Bundle? {