Cleanup after review

This commit is contained in:
str4d
2016-07-13 03:08:37 +00:00
parent d8b5710a42
commit dd1eed5aa7
7 changed files with 13 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ public class WriteBlogPostActivity extends BriarActivity
@Override
public void afterTextChanged(Editable s) {
showOrHidePublishButton();
enableOrDisablePublishButton();
}
});
@@ -126,7 +126,7 @@ public class WriteBlogPostActivity extends BriarActivity
return true;
}
private void showOrHidePublishButton() {
private void enableOrDisablePublishButton() {
int bodyLength =
StringUtils.toUtf8(bodyInput.getText().toString()).length;
if (bodyLength > 0 && bodyLength <= MAX_BLOG_POST_BODY_LENGTH &&