diff options
author | Yana Stamcheva <yana@jitsi.org> | 2011-06-01 13:03:13 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2011-06-01 13:03:13 +0000 |
commit | ae44518a3b4b3b6c1af88db17aad8644ea0881be (patch) | |
tree | c1ecc564f4e2e5f9ee44dd7d06e2d0daad9146b4 /src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java | |
parent | 5cb8b89cbecb83efb6472e21c2bceae66eef4e23 (diff) | |
download | jitsi-ae44518a3b4b3b6c1af88db17aad8644ea0881be.zip jitsi-ae44518a3b4b3b6c1af88db17aad8644ea0881be.tar.gz jitsi-ae44518a3b4b3b6c1af88db17aad8644ea0881be.tar.bz2 |
Optimizes some call methods and makes the unknown contact view call button remove special symbols from phone numbers.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java index dfced07..d78f010 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java @@ -8,7 +8,6 @@ package net.java.sip.communicator.impl.gui.main.contactlist; import java.awt.*; import java.awt.event.*; -import java.util.List; import javax.swing.*; import javax.swing.text.*; @@ -16,7 +15,6 @@ import javax.swing.text.*; import net.java.sip.communicator.impl.gui.*; import net.java.sip.communicator.impl.gui.main.*; import net.java.sip.communicator.impl.gui.main.call.*; -import net.java.sip.communicator.service.protocol.*; import net.java.sip.communicator.util.skin.*; import net.java.sip.communicator.util.swing.*; import net.java.sip.communicator.util.swing.event.*; @@ -112,24 +110,7 @@ public class UnknownContactPanel if (searchText == null) return; - List<ProtocolProviderService> telephonyProviders - = CallManager.getTelephonyProviders(); - - if (telephonyProviders.size() == 1) - { - CallManager.createCall( - telephonyProviders.get(0), searchText); - } - else if (telephonyProviders.size() > 1) - { - ChooseCallAccountPopupMenu chooseAccountDialog - = new ChooseCallAccountPopupMenu( - callContact, - searchText, - telephonyProviders); - - chooseAccountDialog.showPopupMenu(); - } + CallManager.createCall(searchText, callContact); } }); |