@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Activity activity = getActivity(); if (key.equals(getString(R.string.pref_location_key))) { // we've changed the location // Wipe out any potential PlacePicker latlng values so that we can use this text entry. SunshinePreferences.resetLocationCoordinates(activity); SunshineSyncUtils.startImmediateSync(activity); } else if (key.equals(getString(R.string.pref_units_key))) { // units have changed. update lists of weather entries accordingly activity.getContentResolver().notifyChange(WeatherContract.WeatherEntry.CONTENT_URI, null); } Preference preference = findPreference(key); if (null != preference) { if (!(preference instanceof CheckBoxPreference)) { setPreferenceSummary(preference, sharedPreferences.getString(key, "")); } } } }