Browse Source

Merge pull request #4355 from nextcloud/drawer

drawer: show only server address
Andy Scherzinger 5 years ago
parent
commit
259e106308

+ 1 - 1
scripts/analysis/findbugs-results.txt

@@ -1 +1 @@
-412
+413

+ 2 - 1
src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

@@ -783,7 +783,8 @@ public abstract class DrawerActivity extends ToolbarActivity
             TextView username = (TextView) findNavigationViewChildById(R.id.drawer_username);
             TextView username = (TextView) findNavigationViewChildById(R.id.drawer_username);
             TextView usernameFull = (TextView) findNavigationViewChildById(R.id.drawer_username_full);
             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));
             usernameFull.setTextColor(ThemeUtils.fontColor(this));
 
 
             try {
             try {