Add debug settings screen and move widget settings to sub screen
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user