From 9bad5024ff2fe13d9fe366ed40a2ea8662620c18 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 21 Aug 2019 16:21:17 +0800 Subject: Fixed getting same notifications for different accounts (for real this time). Add a settings acivity but with no use now. Minor bugs fixed. Minor UI tweaks. --- .../drawable-night/ic_error_outline_black_24dp.xml | 9 ++++++ .../drawable-night/ic_outline_access_time_24px.xml | 9 ++++++ .../drawable-night/ic_outline_color_lens_24px.xml | 21 ++++++++++++++ .../ic_outline_notifications_24px.xml | 9 ++++++ .../res/drawable/ic_outline_access_time_24px.xml | 9 ++++++ .../res/drawable/ic_outline_color_lens_24px.xml | 21 ++++++++++++++ .../res/drawable/ic_outline_notifications_24px.xml | 9 ++++++ app/src/main/res/layout/fragment_post.xml | 1 - app/src/main/res/layout/settings_activity.xml | 26 +++++++++++++++++ app/src/main/res/values/arrays.xml | 33 ++++++++++++++++++++++ app/src/main/res/values/strings.xml | 13 ++++++++- app/src/main/res/values/styles.xml | 4 +++ app/src/main/res/xml/main_preferences.xml | 25 ++++++++++++++++ app/src/main/res/xml/notification_preferences.xml | 20 +++++++++++++ 14 files changed, 207 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable-night/ic_error_outline_black_24dp.xml create mode 100644 app/src/main/res/drawable-night/ic_outline_access_time_24px.xml create mode 100644 app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml create mode 100644 app/src/main/res/drawable-night/ic_outline_notifications_24px.xml create mode 100644 app/src/main/res/drawable/ic_outline_access_time_24px.xml create mode 100644 app/src/main/res/drawable/ic_outline_color_lens_24px.xml create mode 100644 app/src/main/res/drawable/ic_outline_notifications_24px.xml create mode 100644 app/src/main/res/layout/settings_activity.xml create mode 100644 app/src/main/res/values/arrays.xml create mode 100644 app/src/main/res/xml/main_preferences.xml create mode 100644 app/src/main/res/xml/notification_preferences.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable-night/ic_error_outline_black_24dp.xml b/app/src/main/res/drawable-night/ic_error_outline_black_24dp.xml new file mode 100644 index 00000000..e7d3eb31 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_error_outline_black_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_outline_access_time_24px.xml b/app/src/main/res/drawable-night/ic_outline_access_time_24px.xml new file mode 100644 index 00000000..a846b915 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_outline_access_time_24px.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml b/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml new file mode 100644 index 00000000..d1bc2624 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_outline_color_lens_24px.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/app/src/main/res/drawable-night/ic_outline_notifications_24px.xml b/app/src/main/res/drawable-night/ic_outline_notifications_24px.xml new file mode 100644 index 00000000..43d52df4 --- /dev/null +++ b/app/src/main/res/drawable-night/ic_outline_notifications_24px.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_access_time_24px.xml b/app/src/main/res/drawable/ic_outline_access_time_24px.xml new file mode 100644 index 00000000..dcb0d6ec --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_access_time_24px.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_outline_color_lens_24px.xml b/app/src/main/res/drawable/ic_outline_color_lens_24px.xml new file mode 100644 index 00000000..d1bc2624 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_color_lens_24px.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/app/src/main/res/drawable/ic_outline_notifications_24px.xml b/app/src/main/res/drawable/ic_outline_notifications_24px.xml new file mode 100644 index 00000000..0c2c90a7 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_notifications_24px.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/fragment_post.xml b/app/src/main/res/layout/fragment_post.xml index dcacaf49..9083b01d 100644 --- a/app/src/main/res/layout/fragment_post.xml +++ b/app/src/main/res/layout/fragment_post.xml @@ -3,7 +3,6 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:id="@+id/coordinator_layout_post_fragment" tools:application="ml.docilealligator.infinityforreddit.PostFragment"> + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml new file mode 100644 index 00000000..99955ed6 --- /dev/null +++ b/app/src/main/res/values/arrays.xml @@ -0,0 +1,33 @@ + + + 1 hour + 2 hours + 3 hours + 4 hours + 6 hours + 12 hours + 1 day + + + + 1 + 2 + 3 + 4 + 6 + 12 + 24 + + + + Light Theme + Dark Theme + Device Default + + + + 0 + 1 + 2 + + \ 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 5a245f76..dba73658 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -13,7 +13,8 @@ Subreddits Edit Post Edit Comment - Inbox + Inbox + Settings Open navigation drawer Close navigation drawer @@ -239,4 +240,14 @@ Post Account Switched. So all other pages are gone. + + Account + Notification + Enable Notifications + Check Notifications Interval + Theme + Light Theme + Dark Theme + Device default + Enable NSFW diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 0b20ce0e..2b97cc0d 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -60,4 +60,8 @@ @color/primaryTextColor + + diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml new file mode 100644 index 00000000..5d624d7f --- /dev/null +++ b/app/src/main/res/xml/main_preferences.xml @@ -0,0 +1,25 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/xml/notification_preferences.xml b/app/src/main/res/xml/notification_preferences.xml new file mode 100644 index 00000000..1bb81106 --- /dev/null +++ b/app/src/main/res/xml/notification_preferences.xml @@ -0,0 +1,20 @@ + + + + + + + + \ No newline at end of file -- cgit v1.2.3