Modify DetectAuthenticationMethodOperation so that , when returning its result throug...
[pub/Android/ownCloud.git] / src / com / owncloud / android / authentication / AuthenticatorActivity.java
index cf76883..074751e 100644 (file)
@@ -537,6 +537,27 @@ SsoWebViewClientListener, OnSslUntrustedCertListener {
         }\r
     }\r
 \r
+\r
+    @Override \r
+    protected void onStart() {\r
+        if (mOperationsServiceBinder != null) {\r
+            mOperationsServiceBinder.addOperationListener(AuthenticatorActivity.this, mHandler);\r
+        }\r
+        \r
+        super.onStart();\r
+    }\r
+    \r
+    \r
+    @Override \r
+    protected void onStop() {\r
+        if (mOperationsServiceBinder != null) {\r
+            mOperationsServiceBinder.removeOperationListener(this);\r
+        }\r
+        super.onStop();\r
+    }\r
+    \r
+\r
+\r
     /**\r
      * The redirection triggered by the OAuth authentication server as response to the GET AUTHORIZATION, and \r
      * deferred in {@link #onNewIntent(Intent)}, is processed here.\r