Commit ae8b78ecbfe219d833f15edcecaf0a3b0191e7e0
1 parent
229615b7
→
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
PremiereActivite/app/src/main/java/com/example/app_10p5/MainActivite.java
... | ... | @@ -388,6 +388,7 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr |
388 | 388 | if(output.get("status").toString().equals("ok")){ |
389 | 389 | switch (mState){ |
390 | 390 | case STATE_COMMANDE: |
391 | + Snackbar.make(findViewById(R.id.coordinator), "Client débité de " + output.get("montant") + "€. " + output.get("soldeAncien") + "€ → " + output.getString("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show(); | |
391 | 392 | break; |
392 | 393 | case STATE_CONNEXION: |
393 | 394 | mToken = output.get("jeton").toString(); |
... | ... | @@ -401,8 +402,10 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr |
401 | 402 | Snackbar.make(findViewById(R.id.coordinator), "Client créé avec un solde de " + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show(); |
402 | 403 | break; |
403 | 404 | case STATE_RECHARGEMENT: |
405 | + Snackbar.make(findViewById(R.id.coordinator), "Client rechargé: " + output.get("soldeAncien") + "€ →" + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show(); | |
404 | 406 | break; |
405 | 407 | case STATE_VIDANGE: |
408 | + Snackbar.make(findViewById(R.id.coordinator), "Client vidé: " + output.get("soldeAncien") + "€ → 0€", Snackbar.LENGTH_INDEFINITE).show(); | |
406 | 409 | break; |
407 | 410 | case STATE_RIEN: |
408 | 411 | default: | ... | ... |