Skip to content

Commit

Permalink
Merge pull request #8758 from shamim-emon/fix-issue-8739
Browse files Browse the repository at this point in the history
Account name should be single line if email and display name are identical
  • Loading branch information
wmontwe authored Jan 20, 2025
2 parents 5175031 + 784058e commit 6f3f5d2
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -78,10 +79,12 @@ internal fun AccountView(
text = account.name,
color = MainTheme.colors.onSurface,
)
TextBodyMedium(
text = account.email,
color = MainTheme.colors.onSurfaceVariant,
)
if (account.name != account.email) {
TextBodyMedium(
text = account.email,
color = MainTheme.colors.onSurfaceVariant,
)
}
}
}
}
Expand Down

0 comments on commit 6f3f5d2

Please sign in to comment.