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

Commit 5a879c88 authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Automerger Merge Worker
Browse files

Merge "Introduce defaults to ActivityLaunchAnimator.Callback." into tm-qpr-dev...

Merge "Introduce defaults to ActivityLaunchAnimator.Callback." into tm-qpr-dev am: 7da4acbb am: b456b441

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20979113



Change-Id: Ife8de2491722b33752d0143f5fc4301a3d561ef8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 652adf8d b456b441
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -301,10 +301,13 @@ class ActivityLaunchAnimator(

    interface Callback {
        /** Whether we are currently on the keyguard or not. */
        fun isOnKeyguard(): Boolean
        @JvmDefault fun isOnKeyguard(): Boolean = false

        /** Hide the keyguard and animate using [runner]. */
        fun hideKeyguardWithAnimation(runner: IRemoteAnimationRunner)
        @JvmDefault
        fun hideKeyguardWithAnimation(runner: IRemoteAnimationRunner) {
            throw UnsupportedOperationException()
        }

        /* Get the background color of [task]. */
        fun getBackgroundColor(task: TaskInfo): Int