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

Commit 784058e8 authored by shamim-emon's avatar shamim-emon
Browse files

Show only account name among account name and account email in AccountView if...

Show only  account name among account name and account email in AccountView if account name and account email is identical
parent fb561e3c
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(
            }
        }
    }
}