Skip to content

Commit

Permalink
Fix null value instead of location source
Browse files Browse the repository at this point in the history
  • Loading branch information
thuryn committed Apr 3, 2018
1 parent 49f50ee commit 2331c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ android {
applicationId "org.thosp.yourlocalweather"
minSdkVersion 14
targetSdkVersion 25
versionCode 40
versionName "3.0.14"
versionCode 41
versionName "3.0.15"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
playAccountConfig = playAccountConfigs.defaultAccountConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void saveWeatherAndSendResult(Context context, Weather weather) {
long now = System.currentTimeMillis();
final CurrentWeatherDbHelper currentWeatherDbHelper = CurrentWeatherDbHelper.getInstance(context);
currentWeatherDbHelper.saveWeather(locationId, now, weather);
locationsDbHelper.updateLastUpdatedAndLocationSource(locationId, now, updateSource);
locationsDbHelper.updateLastUpdatedAndLocationSource(locationId, now, locationSource);
currentLocation = locationsDbHelper.getLocationById(locationId);
sendResult(ACTION_WEATHER_UPDATE_OK, weather);
}
Expand Down

0 comments on commit 2331c8a

Please sign in to comment.