diff --git a/app/src/main/java/org/linphone/ui/main/calls/viewmodel/StartCallViewModel.kt b/app/src/main/java/org/linphone/ui/main/calls/viewmodel/StartCallViewModel.kt index 244c3eca7..1f7da0a84 100644 --- a/app/src/main/java/org/linphone/ui/main/calls/viewmodel/StartCallViewModel.kt +++ b/app/src/main/java/org/linphone/ui/main/calls/viewmodel/StartCallViewModel.kt @@ -29,4 +29,9 @@ class StartCallViewModel @UiThread constructor() : ViewModel() { val emptyContactsList = MutableLiveData() val emptySuggestionsList = MutableLiveData() + + @UiThread + fun clearFilter() { + searchFilter.value = "" + } } diff --git a/app/src/main/res/drawable/edit_text_background.xml b/app/src/main/res/drawable/edit_text_background.xml new file mode 100644 index 000000000..1aefdfbd7 --- /dev/null +++ b/app/src/main/res/drawable/edit_text_background.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/shape_edittext_white_background.xml b/app/src/main/res/drawable/shape_edit_text_disabled_background.xml similarity index 61% rename from app/src/main/res/drawable/shape_edittext_white_background.xml rename to app/src/main/res/drawable/shape_edit_text_disabled_background.xml index e54b22b94..ba0cc52fe 100644 --- a/app/src/main/res/drawable/shape_edittext_white_background.xml +++ b/app/src/main/res/drawable/shape_edit_text_disabled_background.xml @@ -1,6 +1,6 @@ - + - + \ No newline at end of file diff --git a/app/src/main/res/drawable/shape_edit_text_focused_background.xml b/app/src/main/res/drawable/shape_edit_text_focused_background.xml new file mode 100644 index 000000000..ef67db014 --- /dev/null +++ b/app/src/main/res/drawable/shape_edit_text_focused_background.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/shape_search_round_background.xml b/app/src/main/res/drawable/shape_search_round_background.xml deleted file mode 100644 index 871ac5679..000000000 --- a/app/src/main/res/drawable/shape_search_round_background.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/shape_search_square_background.xml b/app/src/main/res/drawable/shape_search_square_background.xml deleted file mode 100644 index 0b0cca3fe..000000000 --- a/app/src/main/res/drawable/shape_search_square_background.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/account_profile_fragment.xml b/app/src/main/res/layout/account_profile_fragment.xml index 5c8567c69..eeb21efc3 100644 --- a/app/src/main/res/layout/account_profile_fragment.xml +++ b/app/src/main/res/layout/account_profile_fragment.xml @@ -113,7 +113,7 @@ android:textSize="14sp" android:textColor="@color/gray_9" android:maxLines="1" - android:background="@drawable/shape_edit_text_background" + android:background="@drawable/edit_text_background" android:inputType="text|textPersonName" app:layout_constraintTop_toBottomOf="@id/first_name_label" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/assistant_login_fragment.xml b/app/src/main/res/layout/assistant_login_fragment.xml index 2e78baac6..380ee5420 100644 --- a/app/src/main/res/layout/assistant_login_fragment.xml +++ b/app/src/main/res/layout/assistant_login_fragment.xml @@ -80,7 +80,7 @@ android:text="@={viewModel.username, default=`johndoe`}" android:textSize="14sp" android:textColor="@color/gray_9" - android:background="@drawable/shape_edit_text_background" + android:background="@drawable/edit_text_background" app:layout_constraintTop_toBottomOf="@id/username_label" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> @@ -111,7 +111,7 @@ android:text="@={viewModel.password, default=`johndoe`}" android:textSize="14sp" android:textColor="@color/gray_9" - android:background="@drawable/shape_edit_text_background" + android:background="@drawable/edit_text_background" android:inputType="@{viewModel.showPassword ? InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD : InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD, default=textPassword}" app:layout_constraintTop_toBottomOf="@id/password_label" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/assistant_register_fragment.xml b/app/src/main/res/layout/assistant_register_fragment.xml index ea8ad16fe..dbbbf405b 100644 --- a/app/src/main/res/layout/assistant_register_fragment.xml +++ b/app/src/main/res/layout/assistant_register_fragment.xml @@ -73,7 +73,7 @@ android:text="John Doe" android:textSize="14sp" android:textColor="@color/gray_9" - android:background="@drawable/shape_edit_text_background" + android:background="@drawable/edit_text_background" app:layout_constraintTop_toBottomOf="@id/username_label" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> @@ -104,7 +104,7 @@ android:text="+33 6 01 02 03 04 05" android:textSize="14sp" android:textColor="@color/gray_9" - android:background="@drawable/shape_edit_text_background" + android:background="@drawable/edit_text_background" app:layout_constraintTop_toBottomOf="@id/phone_number_label" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> @@ -135,7 +135,7 @@ android:text="John Doe" android:textSize="14sp" android:textColor="@color/gray_9" - android:background="@drawable/shape_edit_text_background" + android:background="@drawable/edit_text_background" android:inputType="textPassword" android:drawableEnd="@drawable/eye" android:drawableTint="@color/gray_1" diff --git a/app/src/main/res/layout/call_start_fragment.xml b/app/src/main/res/layout/call_start_fragment.xml index 1f9c859ee..899de3da1 100644 --- a/app/src/main/res/layout/call_start_fragment.xml +++ b/app/src/main/res/layout/call_start_fragment.xml @@ -47,6 +47,16 @@ app:layout_constraintStart_toEndOf="@id/back" app:layout_constraintTop_toTopOf="parent"/> + + + + + diff --git a/app/src/main/res/layout/conversation_start_fragment.xml b/app/src/main/res/layout/conversation_start_fragment.xml index a71494b79..15f8b52a0 100644 --- a/app/src/main/res/layout/conversation_start_fragment.xml +++ b/app/src/main/res/layout/conversation_start_fragment.xml @@ -90,7 +90,7 @@ android:padding="10dp" android:drawableStart="@drawable/magnifying_glass" android:drawablePadding="10dp" - android:background="@drawable/shape_search_square_background" + android:background="@drawable/edit_text_background" android:hint="Rechercher des contacts" android:text="@={viewModel.filter}" android:textSize="14sp"