mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Fix deprecation warning on androidx.compose.material3.ListItem
This commit is contained in:
committed by
Benoit Marty
parent
d2b4a85453
commit
d1cf1aa09f
+3
-3
@@ -100,7 +100,7 @@ private fun ItemRow(
|
||||
Item.Parent -> {
|
||||
ListItem(
|
||||
leadingContent = ListItemContent.Icon(IconSource.Vector(Icons.Outlined.SubdirectoryArrowLeft)),
|
||||
headlineContent = {
|
||||
content = {
|
||||
Text(
|
||||
text = "..",
|
||||
modifier = Modifier.padding(16.dp),
|
||||
@@ -113,7 +113,7 @@ private fun ItemRow(
|
||||
is Item.Folder -> {
|
||||
ListItem(
|
||||
leadingContent = ListItemContent.Icon(IconSource.Vector(Icons.Outlined.Folder)),
|
||||
headlineContent = {
|
||||
content = {
|
||||
Text(
|
||||
text = item.name,
|
||||
modifier = Modifier.padding(16.dp),
|
||||
@@ -126,7 +126,7 @@ private fun ItemRow(
|
||||
is Item.File -> {
|
||||
ListItem(
|
||||
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Document())),
|
||||
headlineContent = {
|
||||
content = {
|
||||
Text(
|
||||
text = item.name,
|
||||
modifier = Modifier.padding(16.dp),
|
||||
|
||||
Reference in New Issue
Block a user