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

Commit eed2d8f0 authored by Xiaowen Lei's avatar Xiaowen Lei Committed by Android (Google) Code Review
Browse files

Merge "Use postStartActivityDismissingKeyguard when showOnLockscreen is false." into tm-qpr-dev

parents eaa1efab 913676d0
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -234,19 +234,24 @@ class LockscreenSmartspaceController @Inject constructor(

        ssView.setIntentStarter(object : BcSmartspaceDataPlugin.IntentStarter {
            override fun startIntent(view: View, intent: Intent, showOnLockscreen: Boolean) {
                if (showOnLockscreen) {
                    activityStarter.startActivity(
                            intent,
                            true, /* dismissShade */
                    null, /* launch animator - looks bad with the transparent smartspace bg */
                    showOnLockscreen
                            // launch animator - looks bad with the transparent smartspace bg
                            null,
                            true
                    )
                } else {
                    activityStarter.postStartActivityDismissingKeyguard(intent, 0)
                }
            }

            override fun startPendingIntent(pi: PendingIntent, showOnLockscreen: Boolean) {
                if (showOnLockscreen) {
                    pi.send()
                } else {
                    activityStarter.startPendingIntentDismissingKeyguard(pi)
                    activityStarter.postStartActivityDismissingKeyguard(pi)
                }
            }
        })