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

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

Change-Id: Ieb28a2094cf31e04516519d862c9d8af3e9bce3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Luca Zuccarini
2023-01-20 10:12:48 +00:00
committed by Automerger Merge Worker

View File

@@ -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