From 6da36366a2383d6da3d3375d6ebd9c7287687384 Mon Sep 17 00:00:00 2001
From: Eitan <53308841+blahberi@users.noreply.github.com>
Date: Sun, 20 Oct 2024 23:43:32 +0300
Subject: Changed the way read posts are handled to support an arbitrary read
posts limit (#1720)
* Changed the way read posts are handled to support an arbitrary 'read posts limit'
* Changed db size in summary to kb
* Use return HashSet instead of List in ReadPostsListInterface
* Moved DB summary to Advanced Preferences.
* Completed merge from master into feature/readPost
* Fix some bugs and code style.
---------
Co-authored-by: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>
---
app/src/main/res/layout/fragment_post_history.xml | 55 +++++++++++++++++++++++
app/src/main/res/values/strings.xml | 3 ++
app/src/main/res/xml/advanced_preferences.xml | 4 +-
3 files changed, 61 insertions(+), 1 deletion(-)
(limited to 'app/src/main/res')
diff --git a/app/src/main/res/layout/fragment_post_history.xml b/app/src/main/res/layout/fragment_post_history.xml
index bd0d5ba3..2c3ae592 100644
--- a/app/src/main/res/layout/fragment_post_history.xml
+++ b/app/src/main/res/layout/fragment_post_history.xml
@@ -59,6 +59,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Enable Search History
Post History
Mark Posts as Read
+ Limit Read Posts
+ Set read posts limit
+ Read Posts DB Table \nSize: %1$d(KB) \nCount: %2$d
Mark Posts as Read After Voting
Mark Posts as Read on Scroll
Hide Read Posts Automatically
diff --git a/app/src/main/res/xml/advanced_preferences.xml b/app/src/main/res/xml/advanced_preferences.xml
index 538a5f2e..895f6f86 100644
--- a/app/src/main/res/xml/advanced_preferences.xml
+++ b/app/src/main/res/xml/advanced_preferences.xml
@@ -27,7 +27,9 @@
+ app:title="@string/settings_delete_read_posts_in_database_title"
+ app:summary=""
+ />