mirror of
https://github.com/LucasVbr/OutilCuisson.git
synced 2026-05-13 17:11:53 +00:00
ajout string AlertDialog doublon cuisson
This commit is contained in:
@@ -149,10 +149,11 @@ public class AjouterFragment extends Fragment {
|
||||
} catch (CuissonDejaExistanteException e) {
|
||||
new AlertDialog
|
||||
.Builder(getContext())
|
||||
.setTitle("Titre") // TODO
|
||||
.setMessage("Message ?") // TODO
|
||||
.setNeutralButton(R.string.alert_neutral_button,null)
|
||||
.setPositiveButton("Oui", (dialogInterface, i) -> {
|
||||
.setTitle(R.string.alert_title_doublon)
|
||||
.setMessage(R.string.alert_content_doublon)
|
||||
.setNegativeButton(R.string.alert_no_doublon,null)
|
||||
.setPositiveButton(R.string.alert_yes_doublon,
|
||||
(dialogInterface, i) -> {
|
||||
ArrayList<Cuisson> listeCuisson = ((MainActivity)getActivity()).getListeCuisson();
|
||||
|
||||
for (int j = 0; j < listeCuisson.size() ; j++) {
|
||||
|
||||
@@ -38,6 +38,11 @@
|
||||
\n\nPour obtenir la température de %d°, vous devez régler votre
|
||||
four sur le thermostat %d</string>
|
||||
|
||||
<string name="alert_title_doublon">""</string>
|
||||
<string name="alert_content_doublon">Un temps de cuisson portant
|
||||
ce nom existe déjà. Voulez vous le remplacer ?</string>
|
||||
<string name="alert_no_doublon">"Non"</string>
|
||||
<string name="alert_yes_doublon">"Oui"</string>
|
||||
|
||||
<!-- Toast -->
|
||||
<string name="toast_ajout_ok">Le plat %s a bien été ajouté à la
|
||||
|
||||
Reference in New Issue
Block a user