Modif AlertDialog

This commit is contained in:
NonoL3Robot
2022-03-14 13:52:20 +01:00
parent 7415797bd5
commit 533ceaaeb2
2 changed files with 2 additions and 1 deletions
@@ -107,7 +107,7 @@ public class AjouterFragment extends Fragment {
new Cuisson(txtPlat, hDuree, mDuree, temperature));
Toast.makeText(getContext(), R.string.toast_ajout_ok, Toast.LENGTH_SHORT).show();
} catch (Exception e) {
new AlertDialog.Builder(getContext()).setTitle("Erreur")
new AlertDialog.Builder(getContext()).setTitle(R.string.alert_error)
.setMessage(e.getMessage())
.setPositiveButton(
R.string.alert_positive_button,
+1
View File
@@ -15,6 +15,7 @@
<!-- AlertDialog Erreur Ajout -->
<string name="alert_positive_button">"OK"</string>
<string name="alert_error">"Erreur"</string>
<!-- Toast Ajout OK -->
<string name="toast_ajout_ok">"Cuisson ajoutée avec succès"</string>