コード例 #1
0
  @Override
  protected void updateComposeTweetDefault() {

    ComposeTweetDefault composeTweetDefault = null;
    String currentStatus = mEditText.getText().toString();

    if (Util.isValidString(currentStatus)) {
      composeTweetDefault =
          new ComposeTweetDefault(
              getApp().getCurrentAccountScreenName(), currentStatus, null, null);
    }

    setComposeTweetDefault(composeTweetDefault);
  }
コード例 #2
0
  private String getStatusHint(ComposeTweetDefault composeTweetDefault) {

    String hint = null;

    if (composeTweetDefault != null) {
      String lastStatus = composeTweetDefault.getStatus();
      if (lastStatus != null) {
        lastStatus = Util.trimLeftRight(lastStatus);
        hint =
            getString(R.string.compose_direct_message_finish)
                + " \""
                + getStatusHintSnippet(lastStatus, 16)
                + "\"";
      }
    }

    return hint;
  }