mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed selecting participant in group conversation when typing '@'
This commit is contained in:
parent
5af2fb678f
commit
17d46ed68c
4 changed files with 4 additions and 18 deletions
|
|
@ -46,16 +46,11 @@ class MessageBottomSheetParticipantModel
|
|||
}
|
||||
|
||||
@UiThread
|
||||
fun toggleShowSipUri() {
|
||||
fun clicked() {
|
||||
if (!isOurOwnReaction && !corePreferences.onlyDisplaySipUriUsername) {
|
||||
showSipUri.postValue(showSipUri.value == false)
|
||||
} else {
|
||||
clicked()
|
||||
onClick?.invoke()
|
||||
}
|
||||
}
|
||||
|
||||
@UiThread
|
||||
fun clicked() {
|
||||
onClick?.invoke()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,19 +58,14 @@ class ParticipantModel
|
|||
}
|
||||
|
||||
@UiThread
|
||||
fun toggleShowSipUri() {
|
||||
fun onClicked() {
|
||||
if (onClicked == null && !corePreferences.onlyDisplaySipUriUsername) {
|
||||
showSipUri.postValue(showSipUri.value == false)
|
||||
} else {
|
||||
onClicked()
|
||||
onClicked?.invoke(this)
|
||||
}
|
||||
}
|
||||
|
||||
@UiThread
|
||||
fun onClicked() {
|
||||
onClicked?.invoke(this)
|
||||
}
|
||||
|
||||
@UiThread
|
||||
fun openMenu(view: View) {
|
||||
onMenuClicked?.invoke(view, this)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style"
|
||||
android:onClick="@{() -> model.toggleShowSipUri()}"
|
||||
android:id="@+id/name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -47,7 +46,6 @@
|
|||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style_300"
|
||||
android:onClick="@{() -> model.toggleShowSipUri()}"
|
||||
android:id="@+id/sip_address"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style"
|
||||
android:onClick="@{() -> model.toggleShowSipUri()}"
|
||||
android:id="@+id/name"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -49,7 +48,6 @@
|
|||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style_300"
|
||||
android:onClick="@{() -> model.toggleShowSipUri()}"
|
||||
android:id="@+id/sip_address"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue