1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-26 01:06:42 +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

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