commit | 6e77c58de86cb973030851ef435da965e429e5a2 | [log] [tgz] |
---|---|---|
author | Jordan Demeulenaere <jdemeulenaere@google.com> | Mon Jan 17 11:28:09 2022 +0100 |
committer | Jordan Demeulenaere <jdemeulenaere@google.com> | Wed Feb 16 14:42:03 2022 +0100 |
tree | e528318839b82683fb7592c7f304cec73844ac58 | |
parent | 406e462e4564276b52d933171edb5a895363a1f7 [diff] [blame] |
Animate dialog to app launches (1/2) See b/214961273#comment1 and #comment2 for before/after videos as well as technical explanations on how this animation works. This CL also enables the generation of Java 8 default method bodies in interfaces, in the animation library. This is necessary to avoid unexpected behaviors when using @JvmDefault on an interface + delegation, which is a common pattern when using the animation library. See [1] and [2] for more info. Note that this is enabled only for the animation library (and not SystemUI(Lib)) to avoid breaking code depending on the (now deprecated) @JvmDefault method in SysUI. [1] https://youtrack.jetbrains.com/issue/KT-34612 [2] https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-m3-generating-default-methods-in-interfaces/ Bug: 214961273 Test: atest DialogLaunchAnimatorTest Test: Manual Change-Id: I27d53400a5dc852543a68f5b6f107d9eb08b06db
diff --git a/packages/SystemUI/animation/Android.bp b/packages/SystemUI/animation/Android.bp index 46adfeb..f7bcf1f 100644 --- a/packages/SystemUI/animation/Android.bp +++ b/packages/SystemUI/animation/Android.bp
@@ -39,5 +39,5 @@ ], manifest: "AndroidManifest.xml", - kotlincflags: ["-Xjvm-default=enable"], + kotlincflags: ["-Xjvm-default=all"], }