1. setListShownNoAnimation did not work as expected (something usual in Android)
2. When error, show message and remove progress bar.
final WeatherLocation weatherLocation = query.queryDataBase();
weatherLocation.setLastForecastUIUpdate(new Date());
query.updateDataBase(weatherLocation);
+
+ // Show list.
+ OverviewFragment.this.setListShownNoAnimation(true);
} else {
+ // Empty list and show error message (see setEmptyText in onCreate)
+ OverviewFragment.this.setListAdapter(null);
OverviewFragment.this.setListShownNoAnimation(true);
}
}