aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-09-08 08:08:39 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-09-08 08:08:39 +0000
commit5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf (patch)
tree9db4a30fbebd32e75126a52f02a43df53b4062f8 /app/src/main/res
parent010a230baf5aff1f77e44304b9f1e86b1a3b20f9 (diff)
downloadinfinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.tar
infinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.tar.gz
infinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.tar.bz2
infinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.tar.lz
infinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.tar.xz
infinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.tar.zst
infinity-for-reddit-5dbe271b2cd4ce479e9d6d8d7b6a1c36409328bf.zip
Hiding and unhiding posts are now available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/menu/view_post_detail_activity.xml16
-rw-r--r--app/src/main/res/values/strings.xml6
2 files changed, 17 insertions, 5 deletions
diff --git a/app/src/main/res/menu/view_post_detail_activity.xml b/app/src/main/res/menu/view_post_detail_activity.xml
index 83888218..d971b154 100644
--- a/app/src/main/res/menu/view_post_detail_activity.xml
+++ b/app/src/main/res/menu/view_post_detail_activity.xml
@@ -29,34 +29,40 @@
android:visible="false" />
<item
- android:id="@+id/action_edit_view_post_detail_activity"
+ android:id="@+id/action_hide_view_post_detail_activity"
android:orderInCategory="5"
+ app:showAsAction="never"
+ android:visible="false" />
+
+ <item
+ android:id="@+id/action_edit_view_post_detail_activity"
+ android:orderInCategory="6"
android:title="@string/action_edit_post"
app:showAsAction="never"
android:visible="false" />
<item
android:id="@+id/action_delete_view_post_detail_activity"
- android:orderInCategory="6"
+ android:orderInCategory="7"
android:title="@string/action_delete_post"
app:showAsAction="never"
android:visible="false" />
<item
android:id="@+id/action_nsfw_view_post_detail_activity"
- android:orderInCategory="7"
+ android:orderInCategory="8"
app:showAsAction="never"
android:visible="false" />
<item
android:id="@+id/action_spoiler_view_post_detail_activity"
- android:orderInCategory="8"
+ android:orderInCategory="9"
app:showAsAction="never"
android:visible="false" />
<item
android:id="@+id/action_edit_flair_view_post_detail_activity"
- android:orderInCategory="9"
+ android:orderInCategory="10"
android:title="@string/action_edit_flair"
app:showAsAction="never"
android:visible="false" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b4d561b3..900c8750 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -30,6 +30,8 @@
<string name="action_stop_lazy_mode">Stop Lazy Mode</string>
<string name="action_send">Send</string>
<string name="action_sort">Sort</string>
+ <string name="action_hide_post">Hide Post</string>
+ <string name="action_unhide_post">Unhide Post</string>
<string name="action_edit_post">Edit Post</string>
<string name="action_delete_post">Delete Post</string>
<string name="action_mark_nsfw">Mark NSFW</string>
@@ -216,6 +218,10 @@
<string name="post_saved_failed">Unable to save post</string>
<string name="post_unsaved_success">Post unsaved</string>
<string name="post_unsaved_failed">Unable to unsave post</string>
+ <string name="post_hide_success">Post hidden</string>
+ <string name="post_hide_failed">Unable to hide post</string>
+ <string name="post_unhide_success">Post unhidden</string>
+ <string name="post_unhide_failed">Unable to unhide post</string>
<string name="delete_this_post">Delete This Post</string>
<string name="delete_this_comment">Delete This Comment</string>
<string name="are_you_sure">Are you sure?</string>