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

Commit 17641910 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Reset icon cache due to an issue with persisted BitmapInfo flags

Bug: 430724962
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: Manual
Change-Id: I04a0a6adc800463305ac2249cfe99095413d9c90
parent 3bef4d81
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ data class BitmapInfo(
    companion object {
        const val TAG: String = "BitmapInfo"

        // BitmapInfo flags
        // Persisted BitmapInfo flags. Reset the cache whenever making any changes here.
        const val FLAG_WORK: Int = 1 shl 0
        const val FLAG_INSTANT: Int = 1 shl 1
        const val FLAG_CLONE: Int = 1 shl 2
+1 −1
Original line number Diff line number Diff line
@@ -653,7 +653,7 @@ constructor(
            ComponentKey(ComponentName(packageName, packageName + EMPTY_CLASS_NAME), user)

        // Ensures themed bitmaps in the icon cache are invalidated
        @JvmField val RELEASE_VERSION = if (Flags.enableLauncherIconShapes()) 13 else 12
        @JvmField val RELEASE_VERSION = if (Flags.enableLauncherIconShapes()) 14 else 12

        @JvmField val TABLE_NAME = "icons"
        @JvmField val COLUMN_ROWID = "rowid"