aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-04-02 07:21:15 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-04-02 07:21:15 +0000
commit2d0aa76d3458800a7eeda357f85f38f11bcc0542 (patch)
tree47946170c858be81839d39631e51ea6743efc7d0 /app/src/main/res
parent12f52ec4fd8876b43875f2971393404c91024469 (diff)
downloadinfinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.tar
infinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.tar.gz
infinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.tar.bz2
infinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.tar.lz
infinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.tar.xz
infinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.tar.zst
infinity-for-reddit-2d0aa76d3458800a7eeda357f85f38f11bcc0542.zip
New option: Crash Reports.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_crash_reports.xml6
-rw-r--r--app/src/main/res/layout/item_crash_report.xml8
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/advanced_preferences.xml4
4 files changed, 19 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_crash_reports.xml b/app/src/main/res/layout/fragment_crash_reports.xml
new file mode 100644
index 00000000..bc87d22c
--- /dev/null
+++ b/app/src/main/res/layout/fragment_crash_reports.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context=".settings.CrashReportsFragment" /> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_crash_report.xml b/app/src/main/res/layout/item_crash_report.xml
new file mode 100644
index 00000000..8b5051ce
--- /dev/null
+++ b/app/src/main/res/layout/item_crash_report.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView
+ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default" /> \ 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 f2c97761..496b787f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -556,6 +556,7 @@
<string name="settings_hide_favorite_subreddits_sections_title">Hide Favorite Subreddits Section</string>
<string name="settings_hide_subscribed_subreddits_sections_title">Hide Subscribed Subreddits Section</string>
<string name="settings_default_search_result_tab">Default Search Result Tab</string>
+ <string name="settings_crash_reports_title">Crash Reports</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/advanced_preferences.xml b/app/src/main/res/xml/advanced_preferences.xml
index 0ddef34d..3bc0ce77 100644
--- a/app/src/main/res/xml/advanced_preferences.xml
+++ b/app/src/main/res/xml/advanced_preferences.xml
@@ -46,4 +46,8 @@
app:key="restore_settings"
app:title="@string/settings_restore_settings_title" />
+ <Preference
+ app:title="@string/settings_crash_reports_title"
+ app:fragment="ml.docilealligator.infinityforreddit.settings.CrashReportsFragment" />
+
</PreferenceScreen> \ No newline at end of file