Andy Scherzinger 8 سال پیش
والد
کامیت
1cd1abbc9c
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 5 - 1
src/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -323,10 +323,14 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
     }
 
     private void populateLoginFields(LoginUrlInfo loginUrlInfo) {
-        if(loginUrlInfo != null) {
+        if (loginUrlInfo != null) {
             mHostUrlInput.setText(loginUrlInfo.serverAddress);
             mUsernameInput.setText(loginUrlInfo.username);
             mPasswordInput.setText(loginUrlInfo.password);
+
+            if (loginUrlInfo.serverAddress != null) {
+                onUrlInputFocusLost();
+            }
         }
     }