From e7f95fcb78af0ac57f7d98d0dc78ea30cbc9bdd6 Mon Sep 17 00:00:00 2001 From: Kilian Sonna <83295418+killianson@users.noreply.github.com> Date: Mon, 27 Mar 2023 13:48:51 +0200 Subject: [PATCH] lundi en gras de base --- .../workoutwarrior/ProgramCreationActivity.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/be/lepl1509group13/workoutwarrior/ProgramCreationActivity.java b/app/src/main/java/be/lepl1509group13/workoutwarrior/ProgramCreationActivity.java index 444fa4f..7e333d9 100644 --- a/app/src/main/java/be/lepl1509group13/workoutwarrior/ProgramCreationActivity.java +++ b/app/src/main/java/be/lepl1509group13/workoutwarrior/ProgramCreationActivity.java @@ -79,6 +79,7 @@ public class ProgramCreationActivity extends AppCompatActivity { getSupportActionBar().hide(); init_days_TextView(); + ((TextView) findViewById(R.id.textview_monday)).setTypeface(Typeface.DEFAULT, Typeface.BOLD); db = firebaseDb.getReference("Workouts"); get_DB_Exercices(); @@ -384,14 +385,9 @@ public class ProgramCreationActivity extends AppCompatActivity { TextView day = (TextView) view; for (TextView text : days_TextView) { - if (text.getTypeface() != null && text.getTypeface().isBold()) { - text.setTypeface(Typeface.DEFAULT, Typeface.NORMAL); - } - } - if (day.getTypeface() != null) { - day.setTypeface(Typeface.DEFAULT, Typeface.BOLD); + if (text.getTypeface().isBold()) text.setTypeface(Typeface.DEFAULT, Typeface.NORMAL); } - + day.setTypeface(Typeface.DEFAULT, Typeface.BOLD); ArrayList<Exercise> exoList = exoDetailsForEachDay.get(current_day_displayed); -- GitLab