Closes #1045 - Add crash reporting bool to settings
parent
32478edf00
commit
8cfdae7973
|
@ -49,4 +49,9 @@ class Settings private constructor(context: Context) {
|
||||||
appContext.getPreferenceKey(R.string.pref_key_show_search_suggestions),
|
appContext.getPreferenceKey(R.string.pref_key_show_search_suggestions),
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fun crashReportingEnabled(): Boolean = preferences.getBoolean(
|
||||||
|
appContext.getPreferenceKey(R.string.pref_key_crash_reporter),
|
||||||
|
true
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,18 +2,23 @@
|
||||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
<!-- 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
|
- 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/. -->
|
- 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
|
<androidx.preference.SwitchPreference
|
||||||
android:key="@string/pref_key_telemetry"
|
android:key="@string/pref_key_telemetry"
|
||||||
android:title="@string/preferences_telemetry" />
|
android:title="@string/preferences_telemetry"
|
||||||
|
app:iconSpaceReserved="false" />
|
||||||
<androidx.preference.SwitchPreference
|
<androidx.preference.SwitchPreference
|
||||||
|
android:defaultValue="true"
|
||||||
android:key="@string/pref_key_crash_reporter"
|
android:key="@string/pref_key_crash_reporter"
|
||||||
android:title="@string/preferences_crash_reporter" />
|
android:title="@string/preferences_crash_reporter"
|
||||||
|
app:iconSpaceReserved="false" />
|
||||||
<androidx.preference.SwitchPreference
|
<androidx.preference.SwitchPreference
|
||||||
android:key="@string/pref_key_mozilla_location_service"
|
android:key="@string/pref_key_mozilla_location_service"
|
||||||
android:title="@string/preferences_mozilla_location_service" />
|
android:title="@string/preferences_mozilla_location_service"
|
||||||
|
app:iconSpaceReserved="false" />
|
||||||
<androidx.preference.SwitchPreference
|
<androidx.preference.SwitchPreference
|
||||||
android:key="@string/pref_key_fenix_health_report"
|
android:key="@string/pref_key_fenix_health_report"
|
||||||
android:title="@string/preferences_fenix_health_report" />
|
android:title="@string/preferences_fenix_health_report"
|
||||||
|
app:iconSpaceReserved="false" />
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
Loading…
Reference in New Issue