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:
parent
4d80ca096d
commit
f679e55933
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user