Skip to content

Commit caf1842

Browse files
drawer: show only server address
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent cb7d4a3 commit caf1842

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
412
1+
413

src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,8 @@ protected void setAccountInDrawer(Account account) {
783783
TextView username = (TextView) findNavigationViewChildById(R.id.drawer_username);
784784
TextView usernameFull = (TextView) findNavigationViewChildById(R.id.drawer_username_full);
785785

786-
usernameFull.setText(DisplayUtils.getAccountNameDisplayText(this, account, account.name, account.name));
786+
usernameFull.setText(DisplayUtils.convertIdn(account.name.substring(account.name.lastIndexOf('@') + 1),
787+
false));
787788
usernameFull.setTextColor(ThemeUtils.fontColor(this));
788789

789790
try {

0 commit comments

Comments
 (0)