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)
             }
         }