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

Commit 0c4c1584 authored by Tingting Wang's avatar Tingting Wang
Browse files

Truncate account string at end.

BUG 30143241

Change-Id: Ie8a69776126c407747f2d282aeedabf3c0710ac9
parent e808621e
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -100,11 +100,7 @@ public final class AccountsListAdapter extends BaseAdapter {
        final AccountType accountType = mAccountTypes.getAccountType(account.type, account.dataSet);

        text1.setText(accountType.getDisplayLabel(mContext));

        // For email addresses, we don't want to truncate at end, which might cut off the domain
        // name.
        text2.setText(account.name);
        text2.setEllipsize(TruncateAt.MIDDLE);

        icon.setImageDrawable(accountType.getDisplayIcon(mContext));