mirror of
https://github.com/LucasVbr/OutilCuisson.git
synced 2026-05-13 17:11:53 +00:00
Modif AlertDialog
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user