1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-26 09:16:22 +00:00

Updated OwnCloudAccount#getDisplayName with better fallbacks

This commit is contained in:
David A. Velasco 2016-06-16 12:14:47 +02:00
parent 4d80ca096d
commit f679e55933

View File

@ -144,6 +144,8 @@ public class OwnCloudAccount {
return mDisplayName; return mDisplayName;
} else if (mCredentials != null) { } else if (mCredentials != null) {
return mCredentials.getUsername(); return mCredentials.getUsername();
} else if (mSavedAccount != null) {
return AccountUtils.getUsernameForAccount(mSavedAccount);
} else { } else {
return null; return null;
} }