mirror of
https://github.com/LucasVbr/OutilCuisson.git
synced 2026-05-14 01:21:52 +00:00
Modif AlertDialog
This commit is contained in:
@@ -107,7 +107,7 @@ public class AjouterFragment extends Fragment {
|
|||||||
new Cuisson(txtPlat, hDuree, mDuree, temperature));
|
new Cuisson(txtPlat, hDuree, mDuree, temperature));
|
||||||
Toast.makeText(getContext(), R.string.toast_ajout_ok, Toast.LENGTH_SHORT).show();
|
Toast.makeText(getContext(), R.string.toast_ajout_ok, Toast.LENGTH_SHORT).show();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
new AlertDialog.Builder(getContext()).setTitle("Erreur")
|
new AlertDialog.Builder(getContext()).setTitle(R.string.alert_error)
|
||||||
.setMessage(e.getMessage())
|
.setMessage(e.getMessage())
|
||||||
.setPositiveButton(
|
.setPositiveButton(
|
||||||
R.string.alert_positive_button,
|
R.string.alert_positive_button,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
<!-- AlertDialog Erreur Ajout -->
|
<!-- AlertDialog Erreur Ajout -->
|
||||||
<string name="alert_positive_button">"OK"</string>
|
<string name="alert_positive_button">"OK"</string>
|
||||||
|
<string name="alert_error">"Erreur"</string>
|
||||||
|
|
||||||
<!-- Toast Ajout OK -->
|
<!-- Toast Ajout OK -->
|
||||||
<string name="toast_ajout_ok">"Cuisson ajoutée avec succès"</string>
|
<string name="toast_ajout_ok">"Cuisson ajoutée avec succès"</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user