Fix: Add back pinned tags to apps widget even if the edit button is disabled (#1726)

This commit is contained in:
Tamas Toth
2025-12-30 13:49:27 +01:00
committed by GitHub
parent 3e0338456f
commit dc0e13f66e
2 changed files with 2 additions and 2 deletions

View File

@@ -511,7 +511,7 @@ fun ColumnScope.ConfigureFavoritesWidget(
}
)
SwitchPreference(
title = stringResource(R.string.customize_item_tags),
title = stringResource(R.string.preference_compact_tags),
iconPadding = false,
value = widget.config.compactTags,
onValueChanged = {

View File

@@ -50,7 +50,7 @@ fun AppsWidget(widget: AppsWidget) {
icon = if (selectedTag == null) R.drawable.star_24px else R.drawable.tag_24px,
)
}
if (favoritesEditButton || (customTags && widget.config.tagList.size > 1)) {
if (favoritesEditButton || (!customTags && pinnedTags.isNotEmpty()) || (customTags && widget.config.tagList.size > 1)) {
FavoritesTagSelector(
tags = if (customTags) widget.config.tagList.map { Tag(it) } else pinnedTags,
selectedTag = selectedTag,