Browse Source

Merge pull request #4254 from nextcloud/clearInputBeforeQR

Reset host when using login via QR/link
Andy Scherzinger 5 years ago
parent
commit
5370493798

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

@@ -505,6 +505,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
 
 
         if (loginUrlInfo != null) {
         if (loginUrlInfo != null) {
             try {
             try {
+                mHostUrlInput.setText("");
                 mServerInfo.mBaseUrl = AuthenticatorUrlUtils.normalizeUrlSuffix(loginUrlInfo.serverAddress);
                 mServerInfo.mBaseUrl = AuthenticatorUrlUtils.normalizeUrlSuffix(loginUrlInfo.serverAddress);
                 webViewUser = loginUrlInfo.username;
                 webViewUser = loginUrlInfo.username;
                 webViewPassword = loginUrlInfo.password;
                 webViewPassword = loginUrlInfo.password;