54,13 → 54,13 |
|
//3. Gérer le titre |
String titre = "IdentiPlante"; |
if (eventValue.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
if (eventValue.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
titre = "PictoFlora"; |
} |
|
if (eventValue.equals(ConstantesNavigation.HOME)) { |
if (eventValue.startsWith(ConstantesNavigation.HOME)) { |
String home = cache.getHome(); |
if (home.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
if (home.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
titre = "PictoFlora"; |
} |
} |
75,7 → 75,7 |
|
|
//Actions en fonction de la valeur de l'évènement |
if (eventValue.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
if (eventValue.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
cache.setHome(ConstantesNavigation.PAGE_RECHERCHE_IMAGES); |
lancerMoteurRechercheImages(contenu); |
} else if (eventValue.startsWith(ConstantesNavigation.PAGE_VALIDATION)) { |
84,15 → 84,15 |
} else if (eventValue.startsWith(ConstantesNavigation.PAGE_VALIDATION_PICTOFLORA)) { |
PictofloraDeterminationPresenteur presenteur = new PictofloraDeterminationPresenteur(new PictofloraDeterminationVue(), new ObservationServiceConcret(), new ProtocoleServiceConcret()); |
presenteur.go(contenu); |
} else if (eventValue.equals(ConstantesNavigation.PAGE_COMPARAISON_EFLORE)) { |
} else if (eventValue.startsWith(ConstantesNavigation.PAGE_COMPARAISON_EFLORE)) { |
ComparaisonEflorePresenteur presenteur = new ComparaisonEflorePresenteur(new ComparaisonEfloreVue(), new ImageServiceConcret()); |
presenteur.go(contenu); |
} else if (eventValue.equals(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS)) { |
} else if (eventValue.startsWith(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS)) { |
cache.setHome(ConstantesNavigation.PAGE_RECHERCHE_OBSERVATIONS); |
lancerMoteurRechercheObservation(contenu); |
} else if (eventValue.equals(ConstantesNavigation.HOME)) { |
} else if (eventValue.startsWith(ConstantesNavigation.HOME)) { |
String home = cache.getHome(); |
if (home.equals(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
if (home.startsWith(ConstantesNavigation.PAGE_RECHERCHE_IMAGES)) { |
lancerMoteurRechercheImages(contenu); |
} else { |
lancerMoteurRechercheObservation(contenu); |