Skip to content
Extraits de code Groupes Projets
Valider e9d05d4d rédigé par Arthur Schamroth's avatar Arthur Schamroth
Parcourir les fichiers

Update ProgramCreationActivity.java

parent 194a43b5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!34Arthur
...@@ -157,8 +157,9 @@ public class ProgramCreationActivity extends AppCompatActivity { ...@@ -157,8 +157,9 @@ public class ProgramCreationActivity extends AppCompatActivity {
Button save_btn = findViewById((R.id.save_button)); Button save_btn = findViewById((R.id.save_button));
save_btn.setOnClickListener(v -> { save_btn.setOnClickListener(v -> {
String program_name = String.valueOf(R.id.program_name); EditText program_name = findViewById(R.id.program_name);
if(program_name.equals("")){ String program_name_str = program_name.getText().toString();
if(program_name_str.equals("")){
Toast.makeText(ProgramCreationActivity.this, "Veuillez entrer un nom à votre programme !", Toast.makeText(ProgramCreationActivity.this, "Veuillez entrer un nom à votre programme !",
Toast.LENGTH_SHORT).show(); Toast.LENGTH_SHORT).show();
} }
...@@ -437,6 +438,8 @@ public class ProgramCreationActivity extends AppCompatActivity { ...@@ -437,6 +438,8 @@ public class ProgramCreationActivity extends AppCompatActivity {
/** /**
* Add the new exercise to the program * Add the new exercise to the program
*/ */
System.out.println(exercise.description);
System.out.println(exercise.timer);
if (exoInProgram(exercise)) { if (exoInProgram(exercise)) {
Toast.makeText(this, "Exercice déjà dans le programme !", Toast.makeText(this, "Exercice déjà dans le programme !",
Toast.LENGTH_SHORT).show(); Toast.LENGTH_SHORT).show();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter