1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-13 09:23:00 +00:00

Return user name when display name is unknown

This commit is contained in:
David A. Velasco
2016-06-06 18:26:55 +02:00
parent 743661ca90
commit afe65bdc3f
2 changed files with 11 additions and 5 deletions
@@ -128,7 +128,13 @@ public class OwnCloudAccount {
}
public String getDisplayName() {
return mDisplayName;
if (mDisplayName != null && mDisplayName.length() > 0) {
return mDisplayName;
} else if (mCredentials != null) {
return mCredentials.getUsername();
} else {
return "NONE";
}
}
public void setDisplayName(String displayName) {