public void onRestoreInstanceState(Bundle savedInstanceState) { listData.setFluxRSS(savedInstanceState.getString("fluxRSS")); GeekIncRSSParserService parser = new GeekIncRSSParserService(listData.getFluxRSS()); try { listData.setPodcastElements(parser.getPodcastElements()); } catch (Exception ex) { Log.w("GeekIncListController", "Parsing error " + ex.getMessage()); } }
/** * Mise à jour de l'indicateur de progression * * @param qty la quantité * @param elements les éléments remontés * @param inFluxRSS le flux RSS remonté */ public void updateProgress( GeekIncRssListActivity activity, int qty, List<PodcastElement> elements, String inFluxRSS) { listData.getDialog().setProgress(qty); if (inFluxRSS != null) { listData.setFluxRSS(inFluxRSS); } if (elements != null) { listData.setPodcastElements(elements); } if (qty >= 100) { // Fini !! listData.getDialog().hide(); updateView(activity); } }