From b321e5393da79acd3d952a6b997809a8baa553fe Mon Sep 17 00:00:00 2001 From: andrekir Date: Sat, 2 Nov 2024 06:18:40 -0300 Subject: [PATCH] refactor(contacts): move padding to contentPadding in LazyColumn --- .../main/java/com/geeksville/mesh/ui/ContactsFragment.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/ContactsFragment.kt b/app/src/main/java/com/geeksville/mesh/ui/ContactsFragment.kt index 005cddea..af9762b8 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/ContactsFragment.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/ContactsFragment.kt @@ -8,8 +8,8 @@ import android.view.View import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.view.ActionMode +import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize -import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.runtime.Composable @@ -209,8 +209,8 @@ fun ContactListView( val haptics = LocalHapticFeedback.current LazyColumn( modifier = Modifier - .fillMaxSize() - .padding(6.dp), + .fillMaxSize(), + contentPadding = PaddingValues(6.dp), ) { items(contacts, key = { it.contactKey }) { contact -> val selected by remember { derivedStateOf { selectedList.contains(contact.contactKey) } }