Skip to content
Snippets Groups Projects
Commit 708711e2 authored by Helen Qin's avatar Helen Qin Committed by Android (Google) Code Review
Browse files

Merge "Move provider text to body in create / save dialog" into main

parents cb5c34af 2c195360
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
package com.android.credentialmanager.createflow
import android.credentials.flags.Flags.selectorUiImprovementsEnabled
import android.text.TextUtils
import androidx.activity.compose.ManagedActivityResultLauncher
import androidx.activity.result.ActivityResult
......@@ -329,6 +330,18 @@ fun CreationSelectionCard(
)
}
item { Divider(thickness = 24.dp, color = Color.Transparent) }
val footerDescription = createOptionInfo.footerDescription
if (selectorUiImprovementsEnabled()) {
if (!footerDescription.isNullOrBlank()) {
item {
Row(modifier = Modifier.fillMaxWidth().wrapContentHeight()) {
BodySmallText(text = footerDescription)
}
}
item { Divider(thickness = 24.dp, color = Color.Transparent) }
}
}
item {
CredentialContainerCard {
PrimaryCreateOptionRow(
......@@ -366,18 +379,19 @@ fun CreationSelectionCard(
},
)
}
val footerDescription = createOptionInfo.footerDescription
if (footerDescription != null && footerDescription.length > 0) {
item {
Divider(
thickness = 1.dp,
color = LocalAndroidColorScheme.current.outlineVariant,
modifier = Modifier.padding(vertical = 16.dp)
)
}
item {
Row(modifier = Modifier.fillMaxWidth().wrapContentHeight()) {
BodySmallText(text = footerDescription)
if (!selectorUiImprovementsEnabled()) {
if (footerDescription != null && footerDescription.length > 0) {
item {
Divider(
thickness = 1.dp,
color = LocalAndroidColorScheme.current.outlineVariant,
modifier = Modifier.padding(vertical = 16.dp)
)
}
item {
Row(modifier = Modifier.fillMaxWidth().wrapContentHeight()) {
BodySmallText(text = footerDescription)
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment