Merge remote-tracking branch 'origin/saml_based_federated_single_sign_on' into saml_b...
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 23 Aug 2013 12:32:03 +0000 (14:32 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 23 Aug 2013 12:32:03 +0000 (14:32 +0200)
1  2 
src/com/owncloud/android/authentication/AuthenticatorActivity.java

@@@ -1573,23 -1566,8 +1576,23 @@@ implements  OnRemoteOperationListener, 
              // TODO - show fail\r
              Log_OC.d(TAG, "SSO failed");\r
          }\r
-     }\r
      \r
+     }\r
      \r
  \r
 +    private void syncAccount(){\r
 +        /// immediately request for the synchronization of the new account\r
 +        Bundle bundle = new Bundle();\r
 +        bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\r
 +        ContentResolver.requestSync(mAccount, AccountAuthenticator.AUTHORITY, bundle);\r
 +    }\r
 +    \r
 +    @Override\r
 +    public boolean onTouchEvent(MotionEvent event) {\r
 +        if (AccountAuthenticator.AUTH_TOKEN_TYPE_SAML_WEB_SSO_SESSION_COOKIE.equals(mAuthTokenType) &&\r
 +                mHostUrlInput.hasFocus() && event.getAction() == MotionEvent.ACTION_DOWN) {\r
 +            checkOcServer();\r
 +        }\r
 +        return super.onTouchEvent(event);\r
 +    }\r
  }\r