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

Commit 4bed4921 authored by Joel Galenson's avatar Joel Galenson
Browse files

Show only recent accesses

Pass an argument to the Permissions Hub telling it to show only
accesses in the last minute.

Test: Open this dialog, click the button, ensure last minute is
selected in the Permissions Hub.

Change-Id: I55a11248ba3f08723628cb38861c86254d8e9e11
parent c857f02a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.widget.TextView
import com.android.systemui.Dependency
import com.android.systemui.R
import com.android.systemui.plugins.ActivityStarter
import java.util.concurrent.TimeUnit

class OngoingPrivacyDialog constructor(
    val context: Context,
@@ -60,7 +61,8 @@ class OngoingPrivacyDialog constructor(
            setNegativeButton(R.string.ongoing_privacy_dialog_cancel, null)
            setPositiveButton(R.string.ongoing_privacy_dialog_open_settings,
                    object : DialogInterface.OnClickListener {
                        val intent = Intent(Intent.ACTION_REVIEW_PERMISSION_USAGE)
                        val intent = Intent(Intent.ACTION_REVIEW_PERMISSION_USAGE).putExtra(
                                Intent.EXTRA_DURATION_MILLIS, TimeUnit.MINUTES.toMillis(1))

                        @Suppress("DEPRECATION")
                        override fun onClick(dialog: DialogInterface?, which: Int) {