}\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
@Override
protected void onStart() {
- super.onStart();
+
if (mAccountWasSet) {
onAccountSet(mAccountWasRestored);
}
if (mOperationsServiceBinder != null) {
mOperationsServiceBinder.addOperationListener(FileActivity.this, mHandler);
}
+
+ super.onStart();
}
@Override
protected void onStop() {
- super.onStop();
+
if (mOperationsServiceBinder != null) {
mOperationsServiceBinder.removeOperationListener(this);
}
+
+ super.onStop();
}