diff options
-rw-r--r-- | ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/FindDialog.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/FindDialog.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/FindDialog.java index f86d967..cfd1ee8 100644 --- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/FindDialog.java +++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/FindDialog.java @@ -71,7 +71,7 @@ public class FindDialog extends Dialog { mSearchText.addModifyListener(new ModifyListener() { @Override public void modifyText(ModifyEvent e) { - boolean hasText = !mSearchText.getText().isEmpty(); + boolean hasText = !mSearchText.getText().trim().isEmpty(); mFindNext.setEnabled(hasText); mFindPrevious.setEnabled(hasText); } |