mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed minor UI issues
This commit is contained in:
parent
9a33def8a4
commit
5f6c02e2ca
4 changed files with 8 additions and 6 deletions
|
|
@ -127,7 +127,7 @@ class ConversationsListFragment : AbstractMainFragment() {
|
|||
val modalBottomSheet = ConversationDialogFragment(
|
||||
model.isMuted.value == true,
|
||||
model.isGroup,
|
||||
model.isReadOnly,
|
||||
model.isReadOnly.value == true,
|
||||
(model.unreadMessageCount.value ?: 0) > 0,
|
||||
{ // onDismiss
|
||||
adapter.resetSelection()
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class ConversationModel @WorkerThread constructor(val chatRoom: ChatRoom) {
|
|||
|
||||
val isEncrypted = chatRoom.hasCapability(Capabilities.Encrypted.toInt())
|
||||
|
||||
val isReadOnly = chatRoom.isReadOnly
|
||||
val isReadOnly = MutableLiveData<Boolean>()
|
||||
|
||||
val subject = MutableLiveData<String>()
|
||||
|
||||
|
|
@ -172,6 +172,7 @@ class ConversationModel @WorkerThread constructor(val chatRoom: ChatRoom) {
|
|||
|
||||
isMuted.postValue(chatRoom.muted)
|
||||
isEphemeral.postValue(chatRoom.isEphemeralEnabled)
|
||||
isReadOnly.postValue(chatRoom.isReadOnly)
|
||||
Log.d(
|
||||
"$TAG Ephemeral messages are [${if (chatRoom.isEphemeralEnabled) "enabled" else "disabled"}], lifetime is [${chatRoom.ephemeralLifetime}]"
|
||||
)
|
||||
|
|
@ -257,6 +258,7 @@ class ConversationModel @WorkerThread constructor(val chatRoom: ChatRoom) {
|
|||
coreContext.postOnCoreThread {
|
||||
chatRoom.leave()
|
||||
Log.i("$TAG Group conversation [$id] has been leaved")
|
||||
isReadOnly.postValue(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,11 +52,11 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="2dp"
|
||||
layout="@layout/contact_avatar"
|
||||
bind:model="@{viewModel.account}"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style_800"
|
||||
|
|
|
|||
|
|
@ -52,11 +52,11 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="2dp"
|
||||
layout="@layout/contact_avatar"
|
||||
bind:model="@{viewModel.account}"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style_800"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue