Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+26 −12
Original line number Diff line number Diff line
@@ -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,7 +379,7 @@ fun CreationSelectionCard(
                },
            )
        }
        val footerDescription = createOptionInfo.footerDescription
        if (!selectorUiImprovementsEnabled()) {
            if (footerDescription != null && footerDescription.length > 0) {
                item {
                    Divider(
@@ -382,6 +395,7 @@ fun CreationSelectionCard(
                }
            }
        }
    }
    onLog(CreateCredentialEvent.CREDMAN_CREATE_CRED_CREATION_OPTION_SELECTION)
}