Introduce defaults to ActivityLaunchAnimator.Callback.
This way usages that are never on keyguard require less boilerplate. Bug: 250588519 Test: N/A Change-Id: Ib9d77fab991635fc8a3e997aefb5c79b034ebd72
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user