Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afe65bdc authored by David A. Velasco's avatar David A. Velasco
Browse files

Return user name when display name is unknown

parent 743661ca
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -128,7 +128,13 @@ public class OwnCloudAccount {
    }

    public String getDisplayName() {
        if (mDisplayName != null && mDisplayName.length() > 0) {
            return mDisplayName;
        } else if (mCredentials != null) {
            return mCredentials.getUsername();
        } else {
            return "NONE";
        }
    }

    public void setDisplayName(String displayName) {
+4 −4
Original line number Diff line number Diff line
@@ -59,10 +59,10 @@ public class GetRemoteUserNameOperation extends RemoteOperation {
	private static final String NODE_DISPLAY_NAME= "display-name";
	private static final String NODE_EMAIL= "email";

	private String mUserName;
	private String mDisplayName;

	public String getUserName() {
		return mUserName;
	public String getDisplayName() {
		return mDisplayName;
	}

	
@@ -98,7 +98,7 @@ public class GetRemoteUserNameOperation extends RemoteOperation {
                 ArrayList<Object> data = new ArrayList<Object>();
                 data.add(displayName);
                 result.setData(data);
				 mUserName =  displayName;
				 mDisplayName =  displayName;
				 
				 Log_OC.d(TAG, "*** Parsed user information: " + id + " - " + displayName + " - " + email);