@Override public void onStop() { if (self != null) { self.removeUpdateListener(selfUpdateListener); self = null; } super.onStop(); }
@Override public void onStart() { super.onStart(); if (self == null) { self = getStoreFactory().getZMessagingApiStore().getApi().getSelf(); self.addUpdateListener(selfUpdateListener); selfUpdateListener.updated(); } }