This commit is contained in:
Mariotaku Lee 2016-04-20 13:07:49 +08:00
parent 4bcd693b9b
commit bf6a0f9b24
1 changed files with 1 additions and 1 deletions

View File

@ -1435,7 +1435,7 @@ public class ComposeActivity extends BaseActivity implements OnMenuItemClickList
} else if (!hasMedia && (TextUtils.isEmpty(text) || noReplyContent(text))) {
mEditText.setError(getString(R.string.error_message_no_content));
return;
} else if (maxLength <= 0 || (!mStatusShortenerUsed && tweetLength > maxLength)) {
} else if (maxLength > 0 && !mStatusShortenerUsed && tweetLength > maxLength) {
mEditText.setError(getString(R.string.error_message_status_too_long));
final int textLength = mEditText.length();
mEditText.setSelection(textLength - (tweetLength - maxLength), textLength);