UI update

This commit is contained in:
Tommaso Berlose
2021-01-08 01:17:48 +01:00
parent 20c5ce61b4
commit b903fff10f
9 changed files with 105 additions and 115 deletions

View File

@ -81,8 +81,6 @@ class PreferencesFragment : Fragment() {
viewModel.showEvents.observe(viewLifecycleOwner) {
maintainScrollPosition {
binding.isCalendarEnabled = it
if (it) {
CalendarHelper.setEventUpdatesAndroidN(requireContext())
} else {
@ -93,16 +91,10 @@ class PreferencesFragment : Fragment() {
}
viewModel.showWeather.observe(viewLifecycleOwner) {
maintainScrollPosition {
binding.isWeatherVisible = it
}
checkLocationPermission()
}
viewModel.showClock.observe(viewLifecycleOwner) {
maintainScrollPosition {
binding.isClockVisible = it
}
}
}