Пример #1
0
  @Override
  public void onClick(View view) {
    if (view == ok) {

      Utils.showToast(customdata);

      if (type.equals("504")) {

        ChatActivity.startChatActivity(
            ShowCallPopUp.this,
            Integer.parseInt(VMApp.mPref.userId().getOr("0")),
            Integer.parseInt(from_id),
            0);
        ChatUIActivity.connectToRoom(mActivity, customdata, false);
      } else if (type.equals("505")) {

        ChatActivity.startChatActivity(
            ShowCallPopUp.this,
            Integer.parseInt(VMApp.mPref.userId().getOr("0")),
            Integer.parseInt(from_id),
            0);
        ChatUIActivity.connectToRoom(mActivity, customdata, true);
      }
    }
    finish();
  }