| commit | dac46a070f4d36246768d2ea372da517796338cd | [log] [tgz] |
|---|---|---|
| author | Michal Brzezinski <brzezinski@google.com> | Fri Jan 05 16:01:58 2024 +0000 |
| committer | Michal Brzezinski <brzezinski@google.com> | Fri Jan 05 16:04:09 2024 +0000 |
| tree | 20155a99569dd0ceff5d4bdbcf6e9c7cdd96cbf4 | |
| parent | 8b73725017cc2e76ec6349dae55e5b5901106d12 [diff] |
Adding support for nested LayerDrawables in GhostedViewLaunchAnimatorController Currently we're assuming LayerDrawable will only contain GradientDrawables but that's not the case for QS tiles. Fixes: 316773326 Test: Set device to dark theme -> long press dark theme tile to launch settings -> see corners of transitions are not colored Flag: None Change-Id: Ideaea10ab26af0325300ed4eb3a975e53273c22a
diff --git a/packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt b/packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt index b738e2b..efdbfdb 100644 --- a/packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt +++ b/packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt
@@ -494,7 +494,7 @@ } for (i in 0 until drawable.numberOfLayers) { - (drawable.getDrawable(i) as? GradientDrawable)?.cornerRadii = radii + applyBackgroundRadii(drawable.getDrawable(i), radii) } }