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

Commit 67649cfc authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Fix unwanted icon animation when pressing notif

The FastBitmapDrawable we are receiving from Launcher's icon factory
library has a built-in animation when pressed or hovered. We don't want
that for notifications, so let's turn it off.

Fix: 409889803
Test: manual
Flag: android.app.notifications_redesign_app_icons
Change-Id: I19ae27e1e3cba164142ee4b449ad468309b5d85a
parent 6a732cea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ constructor(@ShadeDisplayAware private val sysuiContext: Context, dumpManager: D
            }
        val badgedIcon = iconFactory.createBadgedIconBitmap(icon, options)
        val creationFlags = if (themed) BitmapInfo.FLAG_THEMED else 0
        return badgedIcon.newIcon(sysuiContext, creationFlags)
        return badgedIcon.newIcon(sysuiContext, creationFlags).apply { isAnimationEnabled = false }
    }

    private fun userIconInfo(context: Context, withWorkProfileBadge: Boolean): UserIconInfo {