Exemple #1
0
        public void onTextChanged(CharSequence s, int start, int before, int count) {

          if (CCPUtil.hasFullSize(s.toString())) {
            switch (mEditType) {
              case GroupCardSetting.GROUP_CARD_NAME:
                msgContentCount = 32;
                break;
              case GroupCardSetting.GROUP_CARD_SIGNATURE:
                msgContentCount = 100;
                break;
            }
          }
        }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // add by able for soft keyboard show

    setContentView(R.layout.layout_chatroom_activity);

    initResourceRefs();

    if (VoiceHelper.getInstance().getDevice() == null) {
      CCPUtil.registDialog(this);
      // finish();
    } else {
      VoiceHelper.getInstance().setHandler(mChatRoomHandler);
      initialize(savedInstanceState);
    }
    registerReceiver(new String[] {VoiceHelper.INTENT_CHAT_ROOM_DISMISS});
    isMikeEnable = VoiceHelper.getInstance().getDevice().getMuteStatus();
    new Thread(mikeAnimRunnable).start();
  }