Commit 229615b79924129e3dc20e4676939e883feaf2d5

Authored by JLo'w
1 parent 2f69be20

PremiereActivite/app/src/main/java/com/example/app_10p5/MainActivite.java
@@ -388,7 +388,6 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr @@ -388,7 +388,6 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr
388 if(output.get("status").toString().equals("ok")){ 388 if(output.get("status").toString().equals("ok")){
389 switch (mState){ 389 switch (mState){
390 case STATE_COMMANDE: 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();  
392 break; 391 break;
393 case STATE_CONNEXION: 392 case STATE_CONNEXION:
394 mToken = output.get("jeton").toString(); 393 mToken = output.get("jeton").toString();
@@ -402,10 +401,8 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr @@ -402,10 +401,8 @@ public class MainActivite extends Activity implements ASyncResponse, main_tab_fr
402 Snackbar.make(findViewById(R.id.coordinator), "Client créé avec un solde de " + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show(); 401 Snackbar.make(findViewById(R.id.coordinator), "Client créé avec un solde de " + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show();
403 break; 402 break;
404 case STATE_RECHARGEMENT: 403 case STATE_RECHARGEMENT:
405 - Snackbar.make(findViewById(R.id.coordinator), "Client rechargé: " + output.get("soldeAncien") + "€ ->" + output.get("soldeNouveau") + "€", Snackbar.LENGTH_INDEFINITE).show();  
406 break; 404 break;
407 case STATE_VIDANGE: 405 case STATE_VIDANGE:
408 - Snackbar.make(findViewById(R.id.coordinator), "Client vidé: " + output.get("soldeAncien") + "€ -> 0€", Snackbar.LENGTH_INDEFINITE).show();  
409 break; 406 break;
410 case STATE_RIEN: 407 case STATE_RIEN:
411 default: 408 default: