Merge "Use postStartActivityDismissingKeyguard when showOnLockscreen is false." into tm-qpr-dev am: eed2d8f0bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20333985 Change-Id: I55c3fd1fac711b44832553bc2c62655bacfdfa04 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -234,19 +234,24 @@ class LockscreenSmartspaceController @Inject constructor(
|
||||
|
||||
ssView.setIntentStarter(object : BcSmartspaceDataPlugin.IntentStarter {
|
||||
override fun startIntent(view: View, intent: Intent, showOnLockscreen: Boolean) {
|
||||
activityStarter.startActivity(
|
||||
intent,
|
||||
true, /* dismissShade */
|
||||
null, /* launch animator - looks bad with the transparent smartspace bg */
|
||||
showOnLockscreen
|
||||
)
|
||||
if (showOnLockscreen) {
|
||||
activityStarter.startActivity(
|
||||
intent,
|
||||
true, /* dismissShade */
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user