Fix: Add back pinned tags to apps widget even if the edit button is disabled (#1726)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user