Enable extra logs before validation to fix easily any possible bug
authormasensio <masensio@solidgear.es>
Fri, 4 Apr 2014 13:05:21 +0000 (15:05 +0200)
committermasensio <masensio@solidgear.es>
Fri, 4 Apr 2014 13:05:21 +0000 (15:05 +0200)
src/com/owncloud/android/authentication/AuthenticatorActivity.java
src/com/owncloud/android/services/OperationsService.java

index 99e114d..a9fac0c 100644 (file)
@@ -43,6 +43,7 @@ import android.support.v4.app.FragmentTransaction;
 import android.text.Editable;\r
 import android.text.InputType;\r
 import android.text.TextWatcher;\r
+import android.util.Log;\r
 import android.view.KeyEvent;\r
 import android.view.MotionEvent;\r
 import android.view.View;\r
@@ -547,7 +548,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
      */\r
     @Override\r
     protected void onSaveInstanceState(Bundle outState) {\r
-        //Log.wtf(TAG, "onSaveInstanceState init" );\r
+        Log.wtf(TAG, "onSaveInstanceState init" );\r
         super.onSaveInstanceState(outState);\r
 \r
         /// global state\r
@@ -577,7 +578,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
         outState.putInt(KEY_OAUTH2_GET_ACCESS_TOKEN_OP_ID, mOauth2GetAccessTokenOpId);\r
         outState.putInt(KEY_GET_USER_NAME_OP_ID, mGetUserNameOpId);\r
 \r
-        //Log.wtf(TAG, "onSaveInstanceState end" );\r
+        Log.wtf(TAG, "onSaveInstanceState end" );\r
     }\r
 \r
 \r
@@ -625,9 +626,9 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
     \r
     @Override\r
     protected void onPause() {\r
-        //Log.wtf(TAG, "onPause init" );\r
+        Log.wtf(TAG, "onPause init" );\r
         if (mOperationsServiceBinder != null) {\r
-            //Log.wtf(TAG, "unregistering to listen for operation callbacks" );\r
+            Log.wtf(TAG, "unregistering to listen for operation callbacks" );\r
             mOperationsServiceBinder.removeOperationListener(this);\r
         }\r
         \r
@@ -635,7 +636,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
         mHostUrlInput.setOnFocusChangeListener(null);\r
         \r
         super.onPause();\r
-        //Log.wtf(TAG, "onPause end" );\r
+        Log.wtf(TAG, "onPause end" );\r
     }\r
     \r
     @Override\r
@@ -678,7 +679,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
                 queryParameters);\r
         \r
         if (mOperationsServiceBinder != null) {\r
-            //Log.wtf(TAG, "getting access token..." );\r
+            Log.wtf(TAG, "getting access token..." );\r
             mOauth2GetAccessTokenOpId = mOperationsServiceBinder.newOperation(getServerInfoIntent);\r
         }\r
     }\r
@@ -744,7 +745,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
             getServerInfoIntent.putExtra(OperationsService.EXTRA_SERVER_URL, uri);\r
             getServerInfoIntent.putExtra(OperationsService.EXTRA_AUTH_TOKEN_TYPE, mAuthTokenType);\r
             if (mOperationsServiceBinder != null) {\r
-                //Log.wtf(TAG, "checking server..." );\r
+                Log.wtf(TAG, "checking server..." );\r
                 mGetServerInfoOpId = mOperationsServiceBinder.newOperation(getServerInfoIntent);\r
             }\r
             \r
@@ -1673,7 +1674,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
         getUserNameIntent.putExtra(OperationsService.EXTRA_FOLLOW_REDIRECTS, followRedirects);\r
         \r
         if (mOperationsServiceBinder != null) {\r
-            //Log_OC.wtf(TAG, "starting getRemoteUserNameOperation..." );\r
+            Log_OC.wtf(TAG, "starting getRemoteUserNameOperation..." );\r
             mGetUserNameOpId = mOperationsServiceBinder.newOperation(getUserNameIntent);\r
         }\r
     }\r
@@ -1768,7 +1769,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
 \r
 \r
     private void doOnResumeAndBound() {\r
-        //Log.wtf(TAG, "registering to listen for operation callbacks" );\r
+        Log.wtf(TAG, "registering to listen for operation callbacks" );\r
         mOperationsServiceBinder.addOperationListener(AuthenticatorActivity.this, mHandler);\r
         \r
         \r
@@ -1777,7 +1778,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
             RemoteOperationResult result = \r
                     mOperationsServiceBinder.getOperationResultIfFinished(mGetServerInfoOpId);\r
             if (result != null) {\r
-                //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+                Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
                 onGetServerInfoFinish(result);\r
             }\r
             \r
@@ -1786,7 +1787,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
                     mOperationsServiceBinder.getOperationResultIfFinished(\r
                             mOauth2GetAccessTokenOpId);\r
             if (result != null) {\r
-                //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+                Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
                 onGetOAuthAccessTokenFinish(result);\r
             }\r
             \r
@@ -1794,7 +1795,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
             RemoteOperationResult result = \r
                     mOperationsServiceBinder.getOperationResultIfFinished(mExistenceCheckOpId);\r
             if (result != null) {\r
-                //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+                Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
                 if (AccountTypeUtils.getAuthTokenTypeSamlSessionCookie(\r
                         MainApp.getAccountType()).equals(mAuthTokenType)) {\r
                     onSamlBasedFederatedSingleSignOnAuthorizationStart(result);\r
@@ -1807,7 +1808,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
             RemoteOperationResult result = \r
                     mOperationsServiceBinder.getOperationResultIfFinished(mGetUserNameOpId);\r
             if (result != null) {\r
-                //Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
+                Log_OC.wtf(TAG, "found result of operation finished while rotating");\r
                 onGetUserNameFinish(result);\r
             }\r
             \r
@@ -1833,7 +1834,7 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
         @Override\r
         public void onServiceConnected(ComponentName component, IBinder service) {\r
             if (component.equals(new ComponentName(AuthenticatorActivity.this, OperationsService.class))) {\r
-                //Log_OC.wtf(TAG, "Operations service connected");\r
+                Log_OC.wtf(TAG, "Operations service connected");\r
                 mOperationsServiceBinder = (OperationsServiceBinder) service;\r
                 \r
                 doOnResumeAndBound();\r
index 798c371..a4de86a 100644 (file)
@@ -52,6 +52,7 @@ import android.os.IBinder;
 import android.os.Looper;
 import android.os.Message;
 import android.os.Process;
+import android.util.Log;
 import android.util.Pair;
 
 public class OperationsService extends Service {
@@ -148,21 +149,21 @@ public class OperationsService extends Service {
      */
     @Override
     public int onStartCommand(Intent intent, int flags, int startId) {
-        //Log.wtf(TAG, "onStartCommand init" );
+        Log.wtf(TAG, "onStartCommand init" );
         Message msg = mServiceHandler.obtainMessage();
         msg.arg1 = startId;
         mServiceHandler.sendMessage(msg);
-        //Log.wtf(TAG, "onStartCommand end" );
+        Log.wtf(TAG, "onStartCommand end" );
         return START_NOT_STICKY;
     }
 
     @Override
     public void onDestroy() {
-        //Log.wtf(TAG, "onDestroy init" );
+        Log.wtf(TAG, "onDestroy init" );
         super.onDestroy();
-        //Log.wtf(TAG, "Clear mOperationResults" );
+        Log.wtf(TAG, "Clear mOperationResults" );
         mOperationResults.clear();
-        //Log.wtf(TAG, "onDestroy end" );
+        Log.wtf(TAG, "onDestroy end" );
     }
 
 
@@ -172,7 +173,7 @@ public class OperationsService extends Service {
      */
     @Override
     public IBinder onBind(Intent intent) {
-        //Log.wtf(TAG, "onBind" );
+        Log.wtf(TAG, "onBind" );
         return mBinder;
     }
 
@@ -348,7 +349,7 @@ public class OperationsService extends Service {
         }
 
         public RemoteOperationResult getOperationResultIfFinished(int operationId) {
-            //Log_OC.wtf(TAG, "Searching result for operation with id " + operationId);
+            Log_OC.wtf(TAG, "Searching result for operation with id " + operationId);
             return mOperationResults.remove(operationId);
         }
 
@@ -384,7 +385,7 @@ public class OperationsService extends Service {
      */
     private void nextOperation() {
         
-        //Log.wtf(TAG, "nextOperation init" );
+        Log.wtf(TAG, "nextOperation init" );
         
         Pair<Target, RemoteOperation> next = null;
         synchronized(mPendingOperations) {