@Override protected void handleReceiver(Context context, Intent intent) { super.handleReceiver(context, intent); if (intent.getAction().equals(new String[] {getActivity().getPackageName() + ".inited"})) { GroupService.syncGroup(this); } else if (IMessageSqlManager.ACTION_GROUP_DEL.equals(intent.getAction())) { onSyncGroup(); } }
@Override public void onResume() { super.onResume(); GroupSqlManager.registerGroupObserver(mGroupAdapter); mGroupAdapter.notifyChange(); if (!sync) { GroupService.syncGroup(this); sync = true; } }