Feature: Lock Single Tag for Favorites Widget (#1355)

* single tag for favorites

* fixing

* don't need this one

* cleanup

* new features - select for favorites/tags customization

* bug fix for tags

* bug fix to show pinned tags

* make sure pinned tag works on load

* better way to work with viewmodel (learning as i go)

* back to working state.. can be improved

* adding some comments

* cleanup

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
This commit is contained in:
rac146
2025-12-21 12:01:06 -05:00
committed by GitHub
parent 97922805aa
commit d6214ef9fa
9 changed files with 437 additions and 120 deletions

View File

@@ -2,15 +2,16 @@ package de.mm20.launcher2.widgets
import de.mm20.launcher2.database.entities.PartialWidgetEntity
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import java.util.UUID
@Serializable
data class FavoritesWidgetConfig(
val customTags: Boolean = false,
val editButton: Boolean = true,
val tagsMultiline: Boolean = false,
val compactTags: Boolean = false,
val tagList: List<String> = emptyList()
)
data class FavoritesWidget(