diff --git a/app/src/main/java/be/lepl1509group13/workoutwarrior/ProgramCreationActivity.java b/app/src/main/java/be/lepl1509group13/workoutwarrior/ProgramCreationActivity.java index 444fa4fefc73de57bd1c132349d8c010ac1d31e1..7e333d967595fb3290483f2cf821d0676f0058fd 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);