1
0
Fork 0

Closes #1045 - Add crash reporting bool to settings

master
Emily Kager 2019-03-15 15:41:49 -07:00 committed by Colin Lee
parent 32478edf00
commit 8cfdae7973
2 changed files with 21 additions and 11 deletions

View File

@ -49,4 +49,9 @@ class Settings private constructor(context: Context) {
appContext.getPreferenceKey(R.string.pref_key_show_search_suggestions),
true
)
fun crashReportingEnabled(): Boolean = preferences.getBoolean(
appContext.getPreferenceKey(R.string.pref_key_crash_reporter),
true
)
}

View File

@ -2,18 +2,23 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.preference.SwitchPreference
android:key="@string/pref_key_telemetry"
android:title="@string/preferences_telemetry" />
android:key="@string/pref_key_telemetry"
android:title="@string/preferences_telemetry"
app:iconSpaceReserved="false" />
<androidx.preference.SwitchPreference
android:key="@string/pref_key_crash_reporter"
android:title="@string/preferences_crash_reporter" />
android:defaultValue="true"
android:key="@string/pref_key_crash_reporter"
android:title="@string/preferences_crash_reporter"
app:iconSpaceReserved="false" />
<androidx.preference.SwitchPreference
android:key="@string/pref_key_mozilla_location_service"
android:title="@string/preferences_mozilla_location_service" />
android:key="@string/pref_key_mozilla_location_service"
android:title="@string/preferences_mozilla_location_service"
app:iconSpaceReserved="false" />
<androidx.preference.SwitchPreference
android:key="@string/pref_key_fenix_health_report"
android:title="@string/preferences_fenix_health_report" />
</PreferenceScreen>
android:key="@string/pref_key_fenix_health_report"
android:title="@string/preferences_fenix_health_report"
app:iconSpaceReserved="false" />
</PreferenceScreen>