@Override protected void onResume() { updateTimeUtil.start(); super.onResume(); }
@Override protected void onResume() { if (firstUpdate) { updateTimeUtil.start(); } super.onResume(); }
@Override public void onStart() { updateTimeUtil.start(); List<ArretFavori> newFavoris = recupererFavoris(); if (newFavoris.size() != favoris.size()) { favoris = null; construireListe(); } else { for (int indice = 0; indice < favoris.size(); indice++) { if (!newFavoris.get(indice).arretId.equals(favoris.get(indice).arretId) || !newFavoris.get(indice).ligneId.equals(favoris.get(indice).ligneId) || !newFavoris.get(indice).macroDirection.equals(favoris.get(indice).macroDirection)) { favoris = null; construireListe(); } } } super.onResume(); }
@Override protected void onResume() { super.onResume(); locationUtil.activeGps(); if (startUpdateTime) { updateTimeUtil.start(); } }
@Override protected void onPostExecute(Void result) { metterAJourListeArrets(currentQuery); updateLocation(locationUtil.getCurrentLocation()); ((BaseAdapter) getListAdapter()).notifyDataSetChanged(); try { myProgressDialog.dismiss(); } catch (IllegalArgumentException ignore) { } updateTimeUtil.start(); startUpdateTime = true; super.onPostExecute(result); } }.execute();
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (getArguments() != null && getArguments().containsKey("groupe")) { groupe = getArguments().getString("groupe"); groupId = groupe.hashCode(); } else { groupId = getString(R.string.all).hashCode(); } construireListe(); updateTimeUtil = new UpdateTimeUtil(new UpdateTime() { public void update(Calendar calendar) { ((FavoriAdapter) getListAdapter()).majCalendar(); ((FavoriAdapter) getListAdapter()).notifyDataSetChanged(); } @Override public boolean updateSecond() { return false; } @Override public Set<Integer> secondesToUpdate() { return null; } }, getActivity()); updateTimeUtil.start(); }
@Override protected void onPostExecute(Void result) { super.onPostExecute(result); if (erreurLigneNonTrouvee) { Toast.makeText(AbstractDetailArret.this, getString(R.string.erreurLigneInconue, myLigne.nomCourt), Toast.LENGTH_LONG).show(); finish(); } else if (erreurNoSpaceLeft) { Toast.makeText(AbstractDetailArret.this, R.string.erreurNoSpaceLeft, Toast.LENGTH_LONG).show(); finish(); } else { setListAdapter(construireAdapter()); if (getListAdapter().getCount() != 0) { setSelection(((AbstractDetailArretAdapter) getListAdapter()).getPositionToMove()); } getListView().invalidate(); updateTimeUtil.start(); firstUpdate = true; } }
setSelection(((AbstractDetailArretAdapter) getListAdapter()).getPositionToMove()); updateTimeUtil.start(); firstUpdate = true;
updateTimeUtil.start();