Add debug settings screen and move widget settings to sub screen

This commit is contained in:
MM20
2022-01-04 21:30:07 +01:00
parent c360753904
commit 2c07b97e01
12 changed files with 123 additions and 27 deletions
@@ -108,7 +108,7 @@ class PreferencesCalendarFragment : PreferenceFragmentCompat() {
override fun onResume() {
super.onResume()
(activity as AppCompatActivity).supportActionBar?.setTitle(R.string.preference_screen_calendar)
(activity as AppCompatActivity).supportActionBar?.setTitle(R.string.preference_screen_calendarwidget)
hasCalendarPermission = requireActivity().checkPermission(Manifest.permission.READ_CALENDAR)
&& requireActivity().checkPermission(Manifest.permission.WRITE_CALENDAR)
}
@@ -146,7 +146,7 @@ class PreferencesWeatherFragment : PreferenceFragmentCompat() {
override fun onResume() {
super.onResume()
(activity as AppCompatActivity).supportActionBar?.setTitle(R.string.preference_screen_weather)
(activity as AppCompatActivity).supportActionBar?.setTitle(R.string.preference_screen_weatherwidget)
}
}
+2 -2
View File
@@ -19,12 +19,12 @@
app:icon="@drawable/ic_pref_weather"
app:key="screen_weather"
app:summary="@string/preference_screen_weather_summary"
app:title="@string/preference_screen_weather" />
app:title="@string/preference_screen_weatherwidget" />
<Preference
app:icon="@drawable/ic_pref_calendar"
app:key="screen_calendar"
app:summary="@string/preference_screen_calendar_summary"
app:title="@string/preference_screen_calendar" />
app:title="@string/preference_screen_calendarwidget" />
<Preference
app:icon="@drawable/ic_pref_account"
app:key="screen_services"