Merge "Introduce defaults to ActivityLaunchAnimator.Callback." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7da4acbb93
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user