Created
May 23, 2015 03:27
-
-
Save haristhohir/27eebfc4e246da0b6351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void onLocationChanged( String newLocation ) { | |
// replace the uri, since the location has changed | |
Uri uri = mUri; | |
if (null != uri) { | |
long date = WeatherContract.WeatherEntry.getDateFromUri(uri); | |
Uri updatedUri = WeatherContract.WeatherEntry.buildWeatherLocationWithDate(newLocation, date); | |
mUri = updatedUri; | |
getLoaderManager().restartLoader(DETAIL_LOADER, null, this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment