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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user