summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michal Brzezinski <brzezinski@google.com> 2024-01-05 16:01:58 +0000
committer Michal Brzezinski <brzezinski@google.com> 2024-01-05 16:04:09 +0000
commitdac46a070f4d36246768d2ea372da517796338cd (patch)
tree20155a99569dd0ceff5d4bdbcf6e9c7cdd96cbf4
parent8b73725017cc2e76ec6349dae55e5b5901106d12 (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
-rw-r--r--packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt2
1 files changed, 1 insertions, 1 deletions
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 b738e2bc972b..efdbfdb83c70 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 @@ constructor(
}
for (i in 0 until drawable.numberOfLayers) {
- (drawable.getDrawable(i) as? GradientDrawable)?.cornerRadii = radii
+ applyBackgroundRadii(drawable.getDrawable(i), radii)
}
}