From 9e36607f90af3ec16a1be1091add1c3b5e70a200 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 11 Apr 2013 14:44:28 -0700 Subject: [PATCH] Fixed a bug with the comments fragment plus button --- .../plugin-src/com/todoroo/astrid/actfm/CommentsFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/CommentsFragment.java b/astrid/plugin-src/com/todoroo/astrid/actfm/CommentsFragment.java index 347c18425..d84650ac1 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/CommentsFragment.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/CommentsFragment.java @@ -18,6 +18,7 @@ import android.graphics.Bitmap; import android.graphics.Color; import android.os.Bundle; import android.text.Editable; +import android.text.TextUtils; import android.text.TextWatcher; import android.view.KeyEvent; import android.view.LayoutInflater; @@ -192,6 +193,7 @@ public abstract class CommentsFragment extends SherlockListFragment { // } }); + commentButton.setVisibility(TextUtils.isEmpty(addCommentField.getText()) ? View.GONE : View.VISIBLE); commentButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {