Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5fe2169 authored by Behnam Heydarshahi's avatar Behnam Heydarshahi Committed by Android (Google) Code Review
Browse files

Merge "Fix loaded tile icon animations in compose" into main

parents 73f2a10d d47d58a8
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.qs.panels.ui.compose.infinitegrid

import android.graphics.drawable.Animatable
import android.graphics.drawable.AnimatedVectorDrawable
import android.graphics.drawable.Drawable
import android.text.TextUtils
import androidx.compose.animation.animateColorAsState
@@ -228,7 +229,14 @@ fun SmallTileContent(
                        }
                    }
                }
                is Icon.Loaded -> rememberDrawablePainter(loadedDrawable)
                is Icon.Loaded -> {
                    LaunchedEffect(loadedDrawable) {
                        if (loadedDrawable is AnimatedVectorDrawable) {
                            loadedDrawable.forceAnimationOnUI()
                        }
                    }
                    rememberDrawablePainter(loadedDrawable)
                }
            }

        Image(