Merge pull request #4355 from nextcloud/drawer

drawer: show only server address
This commit is contained in:
Andy Scherzinger 2019-08-20 16:46:57 +02:00 committed by GitHub
commit 259e106308
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
412
413

View file

@ -783,7 +783,8 @@ public abstract class DrawerActivity extends ToolbarActivity
TextView username = (TextView) findNavigationViewChildById(R.id.drawer_username);
TextView usernameFull = (TextView) findNavigationViewChildById(R.id.drawer_username_full);
usernameFull.setText(DisplayUtils.getAccountNameDisplayText(this, account, account.name, account.name));
usernameFull.setText(DisplayUtils.convertIdn(account.name.substring(account.name.lastIndexOf('@') + 1),
false));
usernameFull.setTextColor(ThemeUtils.fontColor(this));
try {