Update the ui

This commit is contained in:
Tommaso Berlose
2020-10-02 18:02:22 +02:00
parent e8f3c110a8
commit a873c71918
26 changed files with 70 additions and 13 deletions

View File

@ -96,6 +96,7 @@ class ClockTabFragment : Fragment() {
) {
binding.isClockVisible = Preferences.showClock
binding.is24Format = DateFormat.is24HourFormat(requireContext())
binding.isDarkModeEnabled = activity?.isDarkTheme() == true
viewModel.showBigClockWarning.observe(viewLifecycleOwner, Observer {
large_clock_warning?.isVisible = it

View File

@ -65,6 +65,7 @@ class GeneralTabFragment : Fragment() {
binding.lifecycleOwner = this
binding.viewModel = viewModel
binding.isDarkModeEnabled = activity?.isDarkTheme() == true
return binding.root
}