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

This commit is contained in:
Luca Zuccarini
2023-01-20 10:09:29 +00:00
committed by Android (Google) Code Review

View File

@@ -301,10 +301,13 @@ class ActivityLaunchAnimator(
interface Callback { interface Callback {
/** Whether we are currently on the keyguard or not. */ /** Whether we are currently on the keyguard or not. */
fun isOnKeyguard(): Boolean @JvmDefault fun isOnKeyguard(): Boolean = false
/** Hide the keyguard and animate using [runner]. */ /** Hide the keyguard and animate using [runner]. */
fun hideKeyguardWithAnimation(runner: IRemoteAnimationRunner) @JvmDefault
fun hideKeyguardWithAnimation(runner: IRemoteAnimationRunner) {
throw UnsupportedOperationException()
}
/* Get the background color of [task]. */ /* Get the background color of [task]. */
fun getBackgroundColor(task: TaskInfo): Int fun getBackgroundColor(task: TaskInfo): Int