Omar Mohamed Khalil
Results
2
comments of
Omar Mohamed Khalil
**and you may need to update observeviewmodel function in home fragment also to handle if networkWeatherDescription is empty** weather.observe(viewLifecycleOwner) { weather -> weather?.let { prefs.saveCityId(it.cityId) if (prefs.getSelectedTemperatureUnit() == activity?.resources?.getString(R.string.temp_unit_fahrenheit)) it.networkWeatherCondition.temp...
It seems to follow the MVVM!!