From 109b5e71e2d8b6416bdb3a384e690b774b5dac93 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 13 Feb 2024 14:19:49 +0100 Subject: [PATCH] Updated schedule meeting layout --- .../viewmodel/ScheduleMeetingViewModel.kt | 4 +- .../res/layout/meeting_schedule_fragment.xml | 94 ++++++++----------- 2 files changed, 43 insertions(+), 55 deletions(-) diff --git a/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/ScheduleMeetingViewModel.kt b/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/ScheduleMeetingViewModel.kt index 1149dcc18..73b15ba28 100644 --- a/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/ScheduleMeetingViewModel.kt +++ b/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/ScheduleMeetingViewModel.kt @@ -364,7 +364,9 @@ class ScheduleMeetingViewModel @UiThread constructor() : ViewModel() { @UiThread fun schedule() { if (subject.value.orEmpty().isEmpty() || participants.value.orEmpty().isEmpty()) { - Log.e("$TAG Either no subject was set or no participant was selected, can't schedule meeting.") + Log.e( + "$TAG Either no subject was set or no participant was selected, can't schedule meeting." + ) // TODO: show red toast return } diff --git a/app/src/main/res/layout/meeting_schedule_fragment.xml b/app/src/main/res/layout/meeting_schedule_fragment.xml index 6ca8b38dc..fa5c1a59c 100644 --- a/app/src/main/res/layout/meeting_schedule_fragment.xml +++ b/app/src/main/res/layout/meeting_schedule_fragment.xml @@ -247,96 +247,82 @@ app:layout_constraintTop_toBottomOf="@id/subject" android:background="?attr/color_main2_200" /> - - - - + android:drawableStart="@drawable/clock" + android:drawablePadding="8dp" + android:drawableTint="?attr/color_main2_600" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/separator" /> - - + app:layout_constraintStart_toEndOf="@id/from_time" + app:layout_constraintTop_toTopOf="@id/from_time" /> + + + + + app:layout_constraintTop_toBottomOf="@id/all_day_switch" />