diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-04-01 00:33:17 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-04-01 00:33:17 +0000 |
commit | 398d53c162f32acb38feee588d2342d0876772ad (patch) | |
tree | 06030b179242253d74b2e20e9c49b9da87774a48 /app/src/main/res | |
parent | 5976999131859779900181db222c68b60f8a9888 (diff) | |
download | infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.tar infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.tar.gz infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.tar.bz2 infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.tar.lz infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.tar.xz infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.tar.zst infinity-for-reddit-398d53c162f32acb38feee588d2342d0876772ad.zip |
New option in ViewPostDetailFragment: Add to Post Filter. Fix a bug when saving a Post Filter.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/menu/view_post_detail_fragment.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/values/arrays.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 8 |
3 files changed, 22 insertions, 0 deletions
diff --git a/app/src/main/res/menu/view_post_detail_fragment.xml b/app/src/main/res/menu/view_post_detail_fragment.xml index d9e66bd6..437355e0 100644 --- a/app/src/main/res/menu/view_post_detail_fragment.xml +++ b/app/src/main/res/menu/view_post_detail_fragment.xml @@ -99,4 +99,10 @@ android:orderInCategory="15" android:title="@string/action_crosspost" app:showAsAction="never" /> + + <item + android:id="@+id/action_add_to_post_filter_view_post_detail_fragment" + android:orderInCategory="16" + android:title="@string/action_add_to_post_filter" + app:showAsAction="never" /> </menu> diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 764afcf1..38311b43 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -421,4 +421,12 @@ <item>2</item> </string-array> + <string-array name="add_to_post_filter_options"> + <item>@string/exclude_subreddit</item> + <item>@string/exclude_user</item> + <item>@string/exclude_flair</item> + <item>@string/contain_flair</item> + <item>@string/exclude_domain</item> + </string-array> + </resources>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5a46106f..52700094 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -81,6 +81,7 @@ <string name="action_add_to_multireddit">Add to Multireddit</string> <string name="action_share_link">Share Link</string> <string name="action_copy_link">Copy Link</string> + <string name="action_add_to_post_filter">Add to Post Filter</string> <string name="parse_json_response_error">Error occurred when parsing the JSON response</string> <string name="retrieve_token_error">Error Retrieving the token</string> @@ -1083,4 +1084,11 @@ <string name="upvote">Upvote</string> <string name="downvote">Downvote</string> + <string name="select">Select</string> + <string name="exclude_subreddit">Exclude this subreddit</string> + <string name="exclude_user">Exclude this user</string> + <string name="exclude_flair">Exclude this flair</string> + <string name="contain_flair">Contain this flair</string> + <string name="exclude_domain">Exclude Domain</string> + </resources> |