@Override public void onStart() { super.onStart(); Event.subscribeOnEvent( activity(), this, Events.CLOUD_CONNECTION_STATUS, new Closure<CloudConnectionManager.ConnectionStatus, Void>() { @Override public Void execute(CloudConnectionManager.ConnectionStatus arg) { updateCloudStatus(arg); return null; } }); }
@Override public void onStop() { super.onStop(); Event.unSubscribeFromEvents(activity(), this); }