diff --git a/app/src/main/java/com/symphony/mrfit/ui/CurrentWorkoutActivity.kt b/app/src/main/java/com/symphony/mrfit/ui/CurrentWorkoutActivity.kt index e81a7f1..3a8bb0d 100644 --- a/app/src/main/java/com/symphony/mrfit/ui/CurrentWorkoutActivity.kt +++ b/app/src/main/java/com/symphony/mrfit/ui/CurrentWorkoutActivity.kt @@ -1,7 +1,7 @@ /* - * Created by Team Symphony on 4/20/23, 2:11 AM + * Created by Team Symphony on 4/21/23, 10:36 PM * Copyright (c) 2023 . All rights reserved. - * Last modified 4/20/23, 2:11 AM + * Last modified 4/21/23, 10:36 PM */ package com.symphony.mrfit.ui @@ -134,16 +134,15 @@ class CurrentWorkoutActivity : AppCompatActivity() { .inflate(R.layout.activity_post_workout, null, false) materialDialog.setView(dialogView) - .setTitle("Post Exercise") val text = dialogView.findViewById(R.id.postWorkoutTime) val startTime = SimpleDateFormat( - "'You started this workout at' hh:mm a", + "'You started this workout at 'hh:mm a", Locale.getDefault() ) .format(Date().time - timeSpent) val endTime = SimpleDateFormat( - "' and finished at ' hh:mm a", + "' and finished at 'hh:mm a", Locale.getDefault() ) .format(Date()) diff --git a/app/src/main/java/com/symphony/mrfit/ui/WorkoutRoutineActivity.kt b/app/src/main/java/com/symphony/mrfit/ui/WorkoutRoutineActivity.kt index 51fd8bb..f879436 100644 --- a/app/src/main/java/com/symphony/mrfit/ui/WorkoutRoutineActivity.kt +++ b/app/src/main/java/com/symphony/mrfit/ui/WorkoutRoutineActivity.kt @@ -1,7 +1,7 @@ /* - * Created by Team Symphony on 4/21/23, 10:18 PM + * Created by Team Symphony on 4/21/23, 10:36 PM * Copyright (c) 2023 . All rights reserved. - * Last modified 4/21/23, 9:57 PM + * Last modified 4/21/23, 10:26 PM */ package com.symphony.mrfit.ui @@ -108,11 +108,13 @@ class WorkoutRoutineActivity : AppCompatActivity() { routinePlaylist.setText(BLANK) } if (routine.workoutList != null) { - spinner.visibility = View.VISIBLE - placeholderText.visibility = View.GONE - workoutList.visibility = View.VISIBLE - passedList = routine.workoutList - exerciseViewModel.getWorkouts(routine.workoutList) + if (routine.workoutList.isNotEmpty()) { + spinner.visibility = View.VISIBLE + placeholderText.visibility = View.GONE + workoutList.visibility = View.VISIBLE + passedList = routine.workoutList + exerciseViewModel.getWorkouts(routine.workoutList) + } } }) exerciseViewModel.workoutList.observe(this, Observer { diff --git a/app/src/main/res/layout/activity_post_workout.xml b/app/src/main/res/layout/activity_post_workout.xml index d34401a..a1f27bd 100644 --- a/app/src/main/res/layout/activity_post_workout.xml +++ b/app/src/main/res/layout/activity_post_workout.xml @@ -1,8 +1,8 @@ + android:textAlignment="center" + android:textColor="@color/black" + android:textColorHint="@color/black" /> + android:layout_weight="1" + android:textColorHint="@color/material_dynamic_neutral40"> + android:hint="@string/workout_playlist" + android:textColor="@color/black" + android:textColorHint="@color/black" />