diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index de8b88fa..7dcec97d 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -173,6 +173,8 @@ public class StatusAdapter extends RecyclerView.Adapter boolean confirmFav = sharedpreferences.getBoolean(context.getString(R.string.SET_NOTIF_VALIDATION_FAV), false); boolean confirmBoost = sharedpreferences.getBoolean(context.getString(R.string.SET_NOTIF_VALIDATION), true); boolean fullAttachement = sharedpreferences.getBoolean(context.getString(R.string.SET_FULL_PREVIEW), false); + boolean displayBookmark = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_BOOKMARK), false); + int truncate_toots_size = sharedpreferences.getInt(context.getString(R.string.SET_TRUNCATE_TOOTS_SIZE), 0); boolean display_video_preview = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_VIDEO_PREVIEWS), true); boolean isModerator = sharedpreferences.getBoolean(Helper.PREF_IS_MODERATOR, false); @@ -316,7 +318,7 @@ public class StatusAdapter extends RecyclerView.Adapter } else { holder.binding.actionButtons.setVisibility(View.VISIBLE); //Hide or display bookmark button when status is focused - if (status.isFocused) { + if (status.isFocused || displayBookmark) { holder.binding.actionButtonBookmark.setVisibility(View.VISIBLE); } else { holder.binding.actionButtonBookmark.setVisibility(View.GONE); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7e7fc5dc..cb1195cb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1507,6 +1507,7 @@ SET_FILTER_REGEX_LOCAL SET_FILTER_REGEX_PUBLIC SET_NOTIF_VALIDATION + SET_DISPLAY_BOOKMARK SET_NOTIF_VALIDATION_FAV SET_WIFI_ONLY SET_NOTIF_SILENT @@ -1590,6 +1591,7 @@ Message has been sent! Poll type: Poll duration: + Always display bookmark button diff --git a/app/src/main/res/xml/pref_timelines.xml b/app/src/main/res/xml/pref_timelines.xml index 39663e87..f569a8e2 100644 --- a/app/src/main/res/xml/pref_timelines.xml +++ b/app/src/main/res/xml/pref_timelines.xml @@ -16,6 +16,11 @@ android:defaultValue="true" app:key="@string/SET_NOTIF_VALIDATION" app:title="@string/set_share_validation" /> +