89,15 → 89,15 |
|
// TODO afficher une icone de chargement si le chargement devient trop long |
// car tout l'écran est asynchrone ici |
final Observation observationCourante = cache.getObservationCourante(); |
Observation observationCourante = cache.getObservationCourante(); |
observationService.getObservation(observationCourante.getId(), new ObservationsCallback() { |
|
@Override |
public void surRetour(ObservationServiceResultat objetRetour) { |
cache.setImageCourante(observationCourante.getImages().get(0)); |
cache.setImageCourante(cache.getObservationCourante().getImages().get(0)); |
|
new MetadonneesPresenteur(new MetadonneesEnLigneVue(), observationCourante, ModeRecherche.MODE_OBSERVATION).go(vue.getMetadonnees()); |
new ObservationImagesPresenteur(new ObservationImagesVue(), observationCourante).go(vue.getDetailImageObservation()); |
new MetadonneesPresenteur(new MetadonneesEnLigneVue(), cache.getObservationCourante(), ModeRecherche.MODE_OBSERVATION).go(vue.getMetadonnees()); |
new ObservationImagesPresenteur(new ObservationImagesVue(), cache.getObservationCourante()).go(vue.getDetailImageObservation()); |
|
chargerEtAjouterLignesVotesProtocole(); |
new ForumPresenteur(new ForumVue()).go(vue.getForum()); |