if (mAccountWasSet) {
onAccountSet(mAccountWasRestored);
}
+ if (mOperationsServiceBinder != null) {
+ mOperationsServiceBinder.addOperationListener(FileActivity.this, mHandler);
+ }
}
super.onStop();
if (mOperationsServiceBinder != null) {
mOperationsServiceBinder.removeOperationListener(this);
- mOperationsServiceBinder = null;
}
}
@Override
protected void onDestroy() {
super.onDestroy();
- if (mOperationsServiceConnection != null)
+ if (mOperationsServiceConnection != null) {
unbindService(mOperationsServiceConnection);
+ mOperationsServiceBinder = null;
+ }
}