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

Commit b456b441 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 am: 7da4acbb

parents e4bb5384 7da4acbb
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