Beispiel #1
0
  @Override
  protected void handleTaskBackGround(ITask iTask) {
    super.handleTaskBackGround(iTask);

    int key = iTask.getKey();
    if (key == RestGroupManagerHelper.KEY_MODIFY_GROUPCARD) {

      IMMember imMember = new IMMember();

      switch (mEditType) {
        case GroupCardSetting.GROUP_CARD_NAME:
          imMember.displayName = mInputEdit.getText().toString();
          break;
        case GroupCardSetting.GROUP_CARD_TELEPHONE:
          imMember.tel = mInputEdit.getText().toString();
          break;
        case GroupCardSetting.GROUP_CARD_MAIL:
          imMember.mail = mInputEdit.getText().toString();
          break;
        case GroupCardSetting.GROUP_CARD_SIGNATURE:
          imMember.remark = mInputEdit.getText().toString();
          break;

        default:
          break;
      }
      imMember.belong = groupId;
      if (!TextUtils.isEmpty(voipAccount)) {
        imMember.voipAccount = voipAccount;
      }
      RestGroupManagerHelper.getInstance().modifyGroupCard(imMember);
    }
  }
Beispiel #2
0
  @Override
  protected void handleTitleAction(int direction) {

    if (direction == TITLE_RIGHT_ACTION) {
      showConnectionProgress(getString(R.string.dialod_message_operationling));
      ITask iTask = new ITask(RestGroupManagerHelper.KEY_MODIFY_GROUPCARD);
      addTask(iTask);
    } else {
      super.handleTitleAction(direction);
    }
  }
Beispiel #3
0
 @Override
 protected void handleModifyGroupCard(ERequestState reason) {
   super.handleModifyGroupCard(reason);
   closeConnectionProgress();
   if (reason == ERequestState.Success) {
     Intent intent = new Intent(GroupEditActivity.this, GroupDetailActivity.class);
     intent.putExtra("Edit_Content", mInputEdit.getText().toString());
     setResult(RESULT_OK, intent);
     finish();
   } else {
     MyApp.getInstance().showToast(R.string.toast_str_modify_card_failed);
   }
 }
Beispiel #4
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.layout_group_card_edit);

    handleTitleDisplay(getString(R.string.btn_title_back), null, getString(R.string.btn_complete));

    // Bring up the softkeyboard so the user can immediately enter msg. This
    // call won't do anything on devices with a hard keyboard.
    getWindow()
        .setSoftInputMode(
            WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE
                | WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
    InitResource();
    initialize();
  }
Beispiel #5
0
  public void onPause() {
    super.onPause();

    MobclickAgent.onPageEnd("GroupEditActivity");
    MobclickAgent.onPause(this);
  }
Beispiel #6
0
  public void onResume() {
    super.onResume();

    MobclickAgent.onPageStart("GroupEditActivity");
    MobclickAgent.onResume(this);
  }