diff options
author | yanas <yana@jitsi.org> | 2013-11-26 09:54:22 +0100 |
---|---|---|
committer | yanas <yana@jitsi.org> | 2013-11-26 09:54:22 +0100 |
commit | 47d352bca86aef95f65ed32380e45e2e459eb4e6 (patch) | |
tree | 346934dc1882c8df66da766d20aa571c14d051d2 /src/net/java/sip/communicator/impl/protocol | |
parent | 9383a5e000aa64c308892dc71fcefd3ab7a2d542 (diff) | |
download | jitsi-47d352bca86aef95f65ed32380e45e2e459eb4e6.zip jitsi-47d352bca86aef95f65ed32380e45e2e459eb4e6.tar.gz jitsi-47d352bca86aef95f65ed32380e45e2e459eb4e6.tar.bz2 |
Fixes missing account setup and improves menu account info menu
handling.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/msn/OperationSetServerStoredAccountInfoMsnImpl.java | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/msn/OperationSetServerStoredAccountInfoMsnImpl.java b/src/net/java/sip/communicator/impl/protocol/msn/OperationSetServerStoredAccountInfoMsnImpl.java index fb43723..706caf7 100644 --- a/src/net/java/sip/communicator/impl/protocol/msn/OperationSetServerStoredAccountInfoMsnImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/msn/OperationSetServerStoredAccountInfoMsnImpl.java @@ -11,15 +11,16 @@ import java.util.*; import javax.imageio.*; -import org.jitsi.service.fileaccess.FileCategory; - import net.java.sip.communicator.service.protocol.*; +import net.java.sip.communicator.service.protocol.ServerStoredDetails.DisplayNameDetail; import net.java.sip.communicator.service.protocol.ServerStoredDetails.GenericDetail; import net.java.sip.communicator.service.protocol.ServerStoredDetails.ImageDetail; import net.java.sip.communicator.service.protocol.event.*; import net.java.sip.communicator.util.*; import net.sf.jml.*; +import org.jitsi.service.fileaccess.*; + /** * Saves account avatar image. If one is already saved we set it as initial one * for the MsnOwner. @@ -254,17 +255,8 @@ public class OperationSetServerStoredAccountInfoMsnImpl public boolean isDetailClassSupported( Class<? extends GenericDetail> detailClass) { - List<GenericDetail> details = getContactDetails(uin); - Iterator<GenericDetail> iter = details.iterator(); - while (iter.hasNext()) - { - GenericDetail obj = iter.next(); - if (detailClass.isAssignableFrom(obj.getClass())) - { - return true; - } - } - return false; + return ImageDetail.class.isAssignableFrom(detailClass) || + DisplayNameDetail.class.isAssignableFrom(detailClass); } /** |