mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-29 17:59:22 +00:00
Fixed empty bubble when shared file is considered as plain/text
This commit is contained in:
parent
1ae85611bf
commit
561216320f
2 changed files with 4 additions and 2 deletions
|
|
@ -329,7 +329,7 @@ class MessageModel @WorkerThread constructor(
|
|||
parseConferenceInvite(content)
|
||||
|
||||
displayableContentFound = true
|
||||
} else if (content.isText) {
|
||||
} else if (content.isText && !content.isFile) {
|
||||
Log.d("$TAG Found plain text content")
|
||||
computeTextContent(content)
|
||||
|
||||
|
|
@ -416,7 +416,7 @@ class MessageModel @WorkerThread constructor(
|
|||
Log.e("$TAG No name found for FileTransfer Content!")
|
||||
}
|
||||
} else {
|
||||
Log.i("$TAG Content is not a File")
|
||||
Log.w("$TAG Content [${content.name}] is not a File")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,9 +48,11 @@
|
|||
|
||||
<ScrollView
|
||||
android:id="@+id/text"
|
||||
android:onClick="@{() -> viewModel.toggleFullScreen()}"
|
||||
android:background="?attr/color_main2_000"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:visibility="@{viewModel.isText ? View.VISIBLE : View.GONE, default=gone}" >
|
||||
|
||||
<TextView
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue