mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-05-07 05:53:07 +00:00
Forgot file viewer inset padding + allow SIP address in account profile to take two lines
This commit is contained in:
parent
61c1079e7c
commit
4c127344c1
2 changed files with 10 additions and 1 deletions
|
|
@ -8,6 +8,9 @@ import android.util.DisplayMetrics
|
|||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.annotation.UiThread
|
||||
import androidx.core.content.FileProvider
|
||||
import androidx.core.view.ViewCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
import androidx.core.view.updatePadding
|
||||
import androidx.databinding.DataBindingUtil
|
||||
import androidx.lifecycle.ViewModelProvider
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
|
|
@ -53,6 +56,12 @@ class FileViewerActivity : GenericActivity() {
|
|||
viewModel = ViewModelProvider(this)[FileViewModel::class.java]
|
||||
binding.viewModel = viewModel
|
||||
|
||||
ViewCompat.setOnApplyWindowInsetsListener(binding.root) { v, windowInsets ->
|
||||
val insets = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars())
|
||||
v.updatePadding(insets.left, insets.top, insets.right, insets.bottom)
|
||||
WindowInsetsCompat.CONSUMED
|
||||
}
|
||||
|
||||
val args = intent.extras
|
||||
if (args == null) {
|
||||
finish()
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@
|
|||
android:paddingBottom="8dp"
|
||||
android:text="@={viewModel.sipAddress, default=`sip:johndoe@sip.example.org`}"
|
||||
android:textSize="13sp"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
app:layout_constraintStart_toEndOf="@id/sip_address_label"
|
||||
app:layout_constraintEnd_toEndOf="@id/details_background"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue