diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-12-25 07:45:26 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-12-25 07:45:26 +0000 |
commit | 265805038df07da33808f1d539ab8f02d4a84f6a (patch) | |
tree | 543baad5ea3dfa1a6d5af704c67686db40e380ca /app/src/main/res | |
parent | 4ebd10cd8c806ae569c2e09ee478db8921183ef0 (diff) | |
download | infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.tar infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.tar.gz infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.tar.bz2 infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.tar.lz infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.tar.xz infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.tar.zst infinity-for-reddit-265805038df07da33808f1d539ab8f02d4a84f6a.zip |
Save post filter to database.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/drawable-night/ic_save_to_database_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/drawable/ic_save_to_database_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/layout/dialog_edit_name.xml (renamed from app/src/main/res/layout/dialog_edit_theme_name.xml) | 2 | ||||
-rw-r--r-- | app/src/main/res/menu/customize_post_filter_activity.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 4 |
5 files changed, 30 insertions, 1 deletions
diff --git a/app/src/main/res/drawable-night/ic_save_to_database_24dp.xml b/app/src/main/res/drawable-night/ic_save_to_database_24dp.xml new file mode 100644 index 00000000..b10b206f --- /dev/null +++ b/app/src/main/res/drawable-night/ic_save_to_database_24dp.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:pathData="M17,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,7l-4,-4zM12,19c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM15,9L5,9L5,5h10v4z" + android:fillColor="#000000"/> +</vector> diff --git a/app/src/main/res/drawable/ic_save_to_database_24dp.xml b/app/src/main/res/drawable/ic_save_to_database_24dp.xml new file mode 100644 index 00000000..4402c5df --- /dev/null +++ b/app/src/main/res/drawable/ic_save_to_database_24dp.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:pathData="M17,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,7l-4,-4zM12,19c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM15,9L5,9L5,5h10v4z" + android:fillColor="#FFFFFF"/> +</vector> diff --git a/app/src/main/res/layout/dialog_edit_theme_name.xml b/app/src/main/res/layout/dialog_edit_name.xml index 9e126bc5..bfd0cc8c 100644 --- a/app/src/main/res/layout/dialog_edit_theme_name.xml +++ b/app/src/main/res/layout/dialog_edit_name.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <EditText xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/theme_name_edit_text_edit_theme_name_dialog" + android:id="@+id/theme_name_edit_text_edit_name_dialog" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="24dp" diff --git a/app/src/main/res/menu/customize_post_filter_activity.xml b/app/src/main/res/menu/customize_post_filter_activity.xml index 87b5521a..01690700 100644 --- a/app/src/main/res/menu/customize_post_filter_activity.xml +++ b/app/src/main/res/menu/customize_post_filter_activity.xml @@ -7,4 +7,11 @@ android:title="@string/action_save" android:icon="@drawable/ic_check_circle_toolbar_24dp" app:showAsAction="ifRoom" /> + + <item + android:id="@+id/action_save_to_database_customize_post_filter_activity" + android:orderInCategory="2" + android:title="@string/action_save_to_database" + android:icon="@drawable/ic_save_to_database_24dp" + app:showAsAction="ifRoom" /> </menu>
\ 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 c683d45e..afeeb6f4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -73,6 +73,7 @@ <string name="action_block_user">Block User</string> <string name="action_select_user_flair">Select User Flair</string> <string name="action_give_award">Give Award</string> + <string name="action_save_to_database">Save to Database</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> @@ -974,5 +975,8 @@ <string name="max_comments_hint">Max comments</string> <string name="min_awards_hint">Min awards</string> <string name="max_awards_hint">Max awards</string> + <string name="post_filter_name_hint">Post Filter Name</string> + <string name="duplicate_post_filter">Duplicate post filter found. Please use another name.</string> + </resources> |