示例#1
0
 @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();
   }
 }
示例#2
0
  @Override
  public void onResume() {
    super.onResume();
    GroupSqlManager.registerGroupObserver(mGroupAdapter);
    mGroupAdapter.notifyChange();

    if (!sync) {
      GroupService.syncGroup(this);
      sync = true;
    }
  }