Browse Source

OC-1055: Remove follow instruction.

masensio 11 years ago
parent
commit
3072a29730

+ 6 - 3
src/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -716,6 +716,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
         mAuthCheckOperation = new  ExistenceCheckOperation("", this, false);
         mAuthCheckOperation = new  ExistenceCheckOperation("", this, false);
         WebdavClient client = OwnCloudClientUtils.createOwnCloudClient(Uri.parse(mHostBaseUrl + webdav_path), this, false);
         WebdavClient client = OwnCloudClientUtils.createOwnCloudClient(Uri.parse(mHostBaseUrl + webdav_path), this, false);
         mOperationThread = mAuthCheckOperation.execute(client, this, mHandler);
         mOperationThread = mAuthCheckOperation.execute(client, this, mHandler);
+      
     }
     }
 
 
     /**
     /**
@@ -758,8 +759,8 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             mSamlDialog = SamlWebViewDialog.newInstance(url, targetUrl);            
             mSamlDialog = SamlWebViewDialog.newInstance(url, targetUrl);            
             mSamlDialog.show(getSupportFragmentManager(), TAG_SAML_DIALOG);
             mSamlDialog.show(getSupportFragmentManager(), TAG_SAML_DIALOG);
             
             
-            mAuthStatusIcon = android.R.drawable.ic_secure;
-            mAuthStatusText = R.string.auth_follow_auth_server;
+            mAuthStatusIcon = 0;
+            mAuthStatusText = 0;
             
             
         } else {
         } else {
             mAuthStatusIcon = R.drawable.common_error;
             mAuthStatusIcon = R.drawable.common_error;
@@ -1102,6 +1103,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             showAuthStatus();
             showAuthStatus();
             Log_OC.d(TAG, "Access failed: " + result.getLogMessage());
             Log_OC.d(TAG, "Access failed: " + result.getLogMessage());
         }
         }
+
     }
     }
 
 
 
 
@@ -1540,6 +1542,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
                 finish();
                 finish();
             }
             }
         }
         }
+
             
             
     }
     }
 
 
@@ -1563,8 +1566,8 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             // TODO - show fail
             // TODO - show fail
             Log_OC.d(TAG, "SSO failed");
             Log_OC.d(TAG, "SSO failed");
         }
         }
-    }
     
     
+    }
     
     
 
 
 }
 }

+ 4 - 1
src/com/owncloud/android/ui/dialog/SamlWebViewDialog.java

@@ -29,6 +29,7 @@ import android.view.LayoutInflater;
 import android.view.View;
 import android.view.View;
 import android.view.ViewGroup;
 import android.view.ViewGroup;
 import android.webkit.CookieManager;
 import android.webkit.CookieManager;
+import android.webkit.CookieSyncManager;
 import android.webkit.WebBackForwardList;
 import android.webkit.WebBackForwardList;
 import android.webkit.WebSettings;
 import android.webkit.WebSettings;
 import android.webkit.WebView;
 import android.webkit.WebView;
@@ -115,7 +116,9 @@ public class SamlWebViewDialog extends SherlockDialogFragment {
     public void onCreate(Bundle savedInstanceState) {
     public void onCreate(Bundle savedInstanceState) {
         Log_OC.d(TAG, "onCreate");
         Log_OC.d(TAG, "onCreate");
         super.onCreate(savedInstanceState);
         super.onCreate(savedInstanceState);
-
+        
+        CookieSyncManager.createInstance(getActivity());
+        
         if (savedInstanceState == null) {
         if (savedInstanceState == null) {
             mInitialUrl = getArguments().getString(ARG_INITIAL_URL);
             mInitialUrl = getArguments().getString(ARG_INITIAL_URL);
             mTargetUrl = getArguments().getString(ARG_TARGET_URL);
             mTargetUrl = getArguments().getString(ARG_TARGET_URL);