aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java
diff options
context:
space:
mode:
authorVincent Lucas <chenzo@jitsi.org>2012-12-14 18:46:23 +0000
committerVincent Lucas <chenzo@jitsi.org>2012-12-14 18:46:23 +0000
commit40798eafc4bfd5a0147a81ba3167be41c5f99357 (patch)
treecbe098a82dd133b419a47b15a554f8e1db4cf257 /src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java
parenta45f6edbb1999aa39bd7e7d13b88ed3dd2bf7104 (diff)
downloadjitsi-40798eafc4bfd5a0147a81ba3167be41c5f99357.zip
jitsi-40798eafc4bfd5a0147a81ba3167be41c5f99357.tar.gz
jitsi-40798eafc4bfd5a0147a81ba3167be41c5f99357.tar.bz2
First part of automatic audio system change: only if the "none" audio system is currently selected and another audio sytem becomes available (a new device has been detected).
Diffstat (limited to 'src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java')
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java b/src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java
index 415c694..2834665 100644
--- a/src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java
+++ b/src/net/java/sip/communicator/impl/neomedia/DeviceConfigurationComboBoxModel.java
@@ -29,8 +29,7 @@ import org.jitsi.service.neomedia.*;
*/
public class DeviceConfigurationComboBoxModel
implements ComboBoxModel,
- PropertyChangeListener,
- HierarchyListener
+ PropertyChangeListener
{
/**
* Encapsulates a <tt>CaptureDeviceInfo</tt> for the purposes of its display
@@ -186,8 +185,6 @@ public class DeviceConfigurationComboBoxModel
|| type == AUDIO_PLAYBACK)
{
deviceConfiguration.addPropertyChangeListener(this);
-
- parent.addHierarchyListener(this);
}
}
@@ -466,18 +463,4 @@ public class DeviceConfigurationComboBoxModel
fireContentsChanged(0, getSize() - 1);
}
}
-
- /**
- * We listen when the component was hidden in order to release resources,
- * remove listener to clean this instance.
- * @param e the event.
- */
- public void hierarchyChanged(HierarchyEvent e)
- {
- if (((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0)
- && !parent.isShowing())
- {
- deviceConfiguration.removePropertyChangeListener(this);
- }
- }
}