diff --git a/app/src/main/java/net/plil/clubinfo/etunicorn/app/consommation/ConsommationRecyclerViewAdapter.java b/app/src/main/java/net/plil/clubinfo/etunicorn/app/consommation/ConsommationRecyclerViewAdapter.java index a0733ff..188fd05 100644 --- a/app/src/main/java/net/plil/clubinfo/etunicorn/app/consommation/ConsommationRecyclerViewAdapter.java +++ b/app/src/main/java/net/plil/clubinfo/etunicorn/app/consommation/ConsommationRecyclerViewAdapter.java @@ -75,11 +75,12 @@ public class ConsommationRecyclerViewAdapter extends RecyclerView.Adapter() { + @Override + public void onResponse(JSONObject response) { + mProgressBar.setVisibility(View.GONE); + Toast.makeText(getContext(), R.string.modify_done, Toast.LENGTH_LONG).show(); + + } + }, new Response.ErrorListener() { + @Override + public void onErrorResponse(VolleyError error) { + mProgressBar.setVisibility(View.GONE); + Toast.makeText(getContext(), R.string.modify_refused, Toast.LENGTH_LONG).show(); + + } + } + ); + + VolleyUtils.getInstance(getContext()).addToRequestQueue(jsonObjectRequest); + } + }) + .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int id) { + // User cancelled the dialog + } + }); + // Create the AlertDialog object and return it + return builder.create(); + } + + +} diff --git a/app/src/main/res/layout/fragment_modify_consommation.xml b/app/src/main/res/layout/fragment_modify_consommation.xml new file mode 100644 index 0000000..1057b41 --- /dev/null +++ b/app/src/main/res/layout/fragment_modify_consommation.xml @@ -0,0 +1,26 @@ + + + + + + + + + + diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 7cc4085..00724a2 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -20,4 +20,11 @@ Paiement refusé Selectionné un produit avant de payer Supprimer + Supprimer + Suppression effectué + Suppression refusé + Modifier + Modification effectué + Modification refusé + Etes-vous sûr ? \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b857cae..c84d398 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,6 @@ This field is required Username Settings - Enter value OK Cancel @@ -22,12 +21,11 @@ Payment done Payment refused Delete - Modifier + Modify Delete - - - Hello blank fragment Are you sure ? Delete done Delete refused + Modify done + Modify refused -- libgit2 0.21.2