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

Commit c1dcf4b2 authored by Luca Zuccarini's avatar Luca Zuccarini
Browse files

Introduce defaults to ActivityLaunchAnimator.Callback.

This way usages that are never on keyguard require less boilerplate.

Bug: 250588519
Test: N/A
Change-Id: Ib9d77fab991635fc8a3e997aefb5c79b034ebd72
parent bc907f45
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