From bed6c203a13ac5d263b5ca3501e1990930845d03 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Thu, 23 Jun 2022 00:28:24 +0200 Subject: [PATCH] Add: Bookmark(ed) StateActions --- src/main/kotlin/com/looker/droidify/entity/SubEntities.kt | 4 ++++ src/main/res/values/strings.xml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/main/kotlin/com/looker/droidify/entity/SubEntities.kt b/src/main/kotlin/com/looker/droidify/entity/SubEntities.kt index 8ac88657..830ba6b6 100644 --- a/src/main/kotlin/com/looker/droidify/entity/SubEntities.kt +++ b/src/main/kotlin/com/looker/droidify/entity/SubEntities.kt @@ -12,6 +12,8 @@ import androidx.compose.material.icons.rounded.ArrowDropUp import androidx.compose.material.icons.rounded.Close import androidx.compose.material.icons.rounded.Delete import androidx.compose.material.icons.rounded.Download +import androidx.compose.material.icons.rounded.Favorite +import androidx.compose.material.icons.rounded.FavoriteBorder import androidx.compose.material.icons.rounded.Launch import androidx.compose.material.icons.rounded.Share import androidx.compose.material.icons.rounded.Tune @@ -124,6 +126,8 @@ sealed class ActionState( object NoAction : ActionState(R.string.no_action_possible, Icons.Rounded.Close) object Expand : ActionState(R.string.show_more, Icons.Rounded.ArrowDropDown) object Retract : ActionState(R.string.show_less, Icons.Rounded.ArrowDropUp) + object Bookmark : ActionState(R.string.favorite_add, Icons.Rounded.FavoriteBorder) + object Bookmarked : ActionState(R.string.favorite_remove, Icons.Rounded.Favorite) } open class LinkType( diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index de941d68..76b26e44 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -201,4 +201,6 @@ No Action Possible Show screenshots Display screenshots in the app page. + Remove from favorites + Add to favorites