Store themed attribute per icon pack icon

This commit is contained in:
MM20
2023-02-15 20:59:13 +01:00
parent f4c1bcf5aa
commit c71fec59ac
7 changed files with 18 additions and 7 deletions

View File

@@ -11,5 +11,6 @@ data class IconEntity(
val drawable: String?,
val iconPack: String,
val name: String?,
val themed: Boolean = false,
@PrimaryKey(autoGenerate = true) val id : Long? = null
)

View File

@@ -13,6 +13,7 @@ class Migration_19_20: Migration(19, 20) {
`drawable` TEXT,
`iconPack` TEXT NOT NULL,
`name` TEXT,
`themed` INTEGER NOT NULL DEFAULT 0,
`id` INTEGER PRIMARY KEY AUTOINCREMENT)
""")
database.execSQL("INSERT INTO `Icons` (`type`, `componentName`, `drawable`, `iconPack`, `themed`, `name`) SELECT `type`, `componentName`, `drawable`, `iconPack`, null FROM `Icons_old`")