mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed margin around images with large ratio between w/h in chat bubbles
This commit is contained in:
parent
cab66e844b
commit
1ae85611bf
2 changed files with 7 additions and 3 deletions
|
|
@ -40,6 +40,9 @@ import org.linphone.ui.call.viewmodel.CurrentCallViewModel
|
|||
class EndedCallFragment : GenericCallFragment() {
|
||||
companion object {
|
||||
private const val TAG = "[Ended Call Fragment]"
|
||||
|
||||
private const val LOCALLY_TERMINATED_CALL_TIMEOUT: Long = 1000
|
||||
private const val REMOTELY_TERMINATED_CALL_TIMEOUT: Long = 2000
|
||||
}
|
||||
|
||||
private lateinit var binding: CallEndedFragmentBinding
|
||||
|
|
@ -85,12 +88,12 @@ class EndedCallFragment : GenericCallFragment() {
|
|||
Log.i(
|
||||
"$TAG Call terminated by user, waiting 1 second before finishing activity"
|
||||
)
|
||||
delay(1000)
|
||||
delay(LOCALLY_TERMINATED_CALL_TIMEOUT)
|
||||
} else {
|
||||
Log.i(
|
||||
"$TAG Call terminated by remote end, waiting 2 seconds before finishing activity"
|
||||
)
|
||||
delay(2000)
|
||||
delay(REMOTELY_TERMINATED_CALL_TIMEOUT)
|
||||
}
|
||||
|
||||
withContext(Dispatchers.Main) {
|
||||
|
|
|
|||
|
|
@ -26,10 +26,11 @@
|
|||
android:onClick="@{() -> model.onClick()}"
|
||||
android:onLongClick="@{onLongClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/chat_bubble_big_image_max_size"
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="fitCenter"
|
||||
coilBubble="@{model.file}"
|
||||
app:layout_constraintHeight_max="@dimen/chat_bubble_big_image_max_size"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue