Skip to content

Instantly share code, notes, and snippets.

@aibolik
Created March 14, 2016 02:07
Show Gist options
  • Save aibolik/0689d11b4433369fc77a to your computer and use it in GitHub Desktop.
Save aibolik/0689d11b4433369fc77a to your computer and use it in GitHub Desktop.
Sunshine. AsyncTask onPostExecute - replacing original data
@Override
protected void onPostExecute(String[] result) {
if(result != null) {
mForecastAdapter.clear();
for (String dayForecastStr : result) {
mForecastAdapter.add(dayForecastStr);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment