Commit 5719c7d2 by Demid Merzlyakov

Rename method.

parent fd34d71e
......@@ -69,7 +69,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
func applicationDidBecomeActive(_ application: UIApplication) {
LocationManager.shared.updateAllWeatherIfNeeded()
LocationManager.shared.updateEverythingIfNeeded()
}
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
......
......@@ -53,7 +53,7 @@ public class LocationManager {
self?._locations = locations
self?._selectedLocationIndex = selectedIndex
self?.handleLocationsChange(locationsChanged: true, selectedLocationChanged: true)
self?.updateAllWeatherIfNeeded()
self?.updateEverythingIfNeeded()
}
}
......@@ -185,7 +185,7 @@ public class LocationManager {
}
}
public func updateAllWeatherIfNeeded() {
public func updateEverythingIfNeeded() {
let locations = self.locations
guard locations.count > 0 else {
log.info("Update all: update default location if needed.")
......@@ -365,7 +365,7 @@ public class LocationManager {
selectedLocationIndex = locations.count - 1
}
}
updateAllWeatherIfNeeded()
updateEverythingIfNeeded()
}
public func addIfNeeded(partialLocation: PartialLocation, selectLocation: Bool) {
......
......@@ -43,7 +43,7 @@ class ForecastViewModel: ViewModelProtocol {
}
public func updateWeather() {
locationManager.updateAllWeatherIfNeeded()
locationManager.updateEverythingIfNeeded()
}
public func selectDailyWeatherAt(index:Int) {
......
......@@ -31,7 +31,7 @@ class TodayViewModel: ViewModelProtocol {
}
public func updateWeather() {
locationManager.updateAllWeatherIfNeeded()
locationManager.updateEverythingIfNeeded()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment