Add crash_report_notifications_enabled shared preferences

This will allow users to control if a notification should be shown with the crash info when app is restarted after a crash

The `TermuxPreferenceConstants` classes has been updated to `v0.8.0`. Check its Changelog section for info on changes.
This commit is contained in:
agnostic-apollo
2021-04-06 12:48:56 +05:00
parent 18b004a2ba
commit cf5bb69fc8
5 changed files with 37 additions and 1 deletions

View File

@@ -22,6 +22,12 @@
app:summaryOn="@string/plugin_error_notifications_on"
app:title="@string/plugin_error_notifications_title" />
<SwitchPreferenceCompat
app:key="crash_report_notifications_enabled"
app:summaryOff="@string/crash_report_notifications_off"
app:summaryOn="@string/crash_report_notifications_on"
app:title="@string/crash_report_notifications_title" />
</PreferenceCategory>
</PreferenceScreen>