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

Unverified Commit 6f3f5d26 authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé Committed by GitHub
Browse files

Merge pull request #8758 from shamim-emon/fix-issue-8739

Account name should be single line if email and display name are identical
parents 51750310 784058e8
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import app.k9mail.core.ui.compose.designsystem.atom.text.TextBodyMedium
import app.k9mail.core.ui.compose.theme2.MainTheme
import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccount

@Suppress("LongMethod")
@Composable
internal fun AccountView(
    account: DisplayAccount,
@@ -78,6 +79,7 @@ internal fun AccountView(
                    text = account.name,
                    color = MainTheme.colors.onSurface,
                )
                if (account.name != account.email) {
                    TextBodyMedium(
                        text = account.email,
                        color = MainTheme.colors.onSurfaceVariant,
@@ -86,3 +88,4 @@ internal fun AccountView(
            }
        }
    }
}