Skip to content
Snippets Groups Projects
Commit c0c070b9 authored by “kamon's avatar “kamon
Browse files

Apparition du formulaire uniquement lors du chargement d'une photo via la gallerie

parent 32d04dd3
Branches
No related tags found
1 merge request!9Master
...@@ -110,6 +110,7 @@ public class PhotoPage extends Fragment { ...@@ -110,6 +110,7 @@ public class PhotoPage extends Fragment {
if (cameraImage != null) { if (cameraImage != null) {
imageView.setImageBitmap(cameraImage); imageView.setImageBitmap(cameraImage);
processImage(cameraImage); // Pass the image for further processing processImage(cameraImage); // Pass the image for further processing
showOverlayForm();
} }
break; break;
...@@ -130,7 +131,7 @@ public class PhotoPage extends Fragment { ...@@ -130,7 +131,7 @@ public class PhotoPage extends Fragment {
} }
break; break;
} }
showOverlayForm();
} }
private void processImage(Bitmap bitmap) { private void processImage(Bitmap bitmap) {
...@@ -155,7 +156,7 @@ public class PhotoPage extends Fragment { ...@@ -155,7 +156,7 @@ public class PhotoPage extends Fragment {
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} catch (NoSpeciesRecognizedException e) { } catch (NoSpeciesRecognizedException e) {
textPredictionOutput.setText("Cette espèce pas encore répertoriée"); textPredictionOutput.setText("Cette espèce n'est pas encore répertoriée.");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment