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

Commit bc5e1cb8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adds an `IFTTT` lint to bitmap info flags to ensure when flags change,...

Merge "Adds an `IFTTT` lint to bitmap info flags to ensure when flags change, cache release version is updated." into main
parents ed9fc857 e540ece7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -213,12 +213,15 @@ data class BitmapInfo(
    companion object {
        const val TAG: String = "BitmapInfo"

        // Persisted BitmapInfo flags. Reset the cache whenever making any changes here.
        // Persisted BitmapInfo flags.
        // Reset the cache by changing RELEASE_VERSION whenever making any changes here.
        // LINT.IfChange
        const val FLAG_WORK: Int = 1 shl 0
        const val FLAG_INSTANT: Int = 1 shl 1
        const val FLAG_CLONE: Int = 1 shl 2
        const val FLAG_PRIVATE: Int = 1 shl 3
        const val FLAG_FULL_BLEED: Int = 1 shl 4
        // LINT.ThenChange(src/com/android/launcher3/icons/cache/BaseIconCache.kt:cache_release_version)

        // Drawable creation flags
        const val FLAG_THEMED: Int = 1 shl 0
+2 −0
Original line number Diff line number Diff line
@@ -660,7 +660,9 @@ constructor(
            ComponentKey(ComponentName(packageName, packageName + EMPTY_CLASS_NAME), user)

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

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