@Override public void onResume() { super.onResume(); if (isNeedUpdateData) { isNeedUpdateData = false; refreshEvents(); } }
public void handleMessage(Message msg) { super.handleMessage(msg); @SuppressWarnings("unchecked") ArrayList<FDEvent> newEvents = (ArrayList<FDEvent>) msg.obj; // if (events == null) { events = new ArrayList<FDEvent>(); } else { events.clear(); } if (newEvents != null) { events.addAll(newEvents); } if (calendarComponent != null) calendarComponent.checkEvents(events, mSocialEvents); if (eAdapter != null) eAdapter.notifyDataSetChanged(); }
@Override public void onDestroy() { super.onDestroy(); getActivity().unregisterReceiver(updatesGroupMsgReceiver); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }