Browse Source

Merge pull request #7124 from nextcloud/loginQR

use custom SSO value for authTokenType -> to detect if account is added by SSO
Tobias Kaminsky 4 years ago
parent
commit
d4d22c4a27

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

@@ -707,7 +707,8 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
         if (extras == null) {
         if (extras == null) {
             return false;
             return false;
         } else {
         } else {
-            return extras.getParcelable("accountAuthenticatorResponse") != null;
+            String authTokenType = extras.getString("authTokenType");
+            return "SSO".equals(authTokenType);
         }
         }
     }
     }