aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/desktoputil
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2014-04-08 11:35:41 +0300
committerDamian Minkov <damencho@jitsi.org>2014-04-08 16:40:28 +0300
commite058d0ff7fe648b2cfb63b3bf6c3ba2b1c21f6b8 (patch)
treee08f633985fd222c5eabbfd8c600103367915238 /src/net/java/sip/communicator/plugin/desktoputil
parentc4f4d85925fc95694880aea95a9d42a5edbb8792 (diff)
downloadjitsi-e058d0ff7fe648b2cfb63b3bf6c3ba2b1c21f6b8.zip
jitsi-e058d0ff7fe648b2cfb63b3bf6c3ba2b1c21f6b8.tar.gz
jitsi-e058d0ff7fe648b2cfb63b3bf6c3ba2b1c21f6b8.tar.bz2
Shows or hide buttons in search field or unknown panel depending the text entered.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/desktoputil')
-rw-r--r--src/net/java/sip/communicator/plugin/desktoputil/plaf/SearchFieldUI.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/desktoputil/plaf/SearchFieldUI.java b/src/net/java/sip/communicator/plugin/desktoputil/plaf/SearchFieldUI.java
index 6b0c50e..d615ce2 100644
--- a/src/net/java/sip/communicator/plugin/desktoputil/plaf/SearchFieldUI.java
+++ b/src/net/java/sip/communicator/plugin/desktoputil/plaf/SearchFieldUI.java
@@ -17,6 +17,7 @@ import net.java.sip.communicator.plugin.desktoputil.*;
import net.java.sip.communicator.util.skin.*;
import org.jitsi.service.resources.*;
+import org.jitsi.util.*;
/**
* The <tt>SearchTextFieldUI</tt> is the one responsible for the search field
@@ -168,6 +169,7 @@ public class SearchFieldUI
if (c.getText() != null
&& c.getText().length() > 0
+ && !StringUtils.containsLetters(c.getText())
&& isSMSButtonEnabled)
{
// Paint sms button.