+ // are we starting the preference activity?
+ if ( !mBindingPreference ) {
+ if (preference.getKey().equals(getString(R.string.pref_location_key))) {
+ FetchWeatherTask weatherTask = new FetchWeatherTask(this);
+ String location = value.toString();
+ weatherTask.execute(location);
+ } else {
+ // notify code that weather may be impacted
+ getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null);
+ }
+ }
+