diff options
-rw-r--r-- | media/java/android/media/midi/MidiManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/java/android/media/midi/MidiManager.java b/media/java/android/media/midi/MidiManager.java index 89230fe..7197dc0 100644 --- a/media/java/android/media/midi/MidiManager.java +++ b/media/java/android/media/midi/MidiManager.java @@ -24,7 +24,7 @@ import android.os.Handler; import android.os.RemoteException; import android.util.Log; -import java.util.HashMap; +import java.util.concurrent.ConcurrentHashMap; /** * This class is the public application interface to the MIDI service. @@ -61,8 +61,8 @@ public final class MidiManager { private final IMidiManager mService; private final IBinder mToken = new Binder(); - private HashMap<DeviceCallback,DeviceListener> mDeviceListeners = - new HashMap<DeviceCallback,DeviceListener>(); + private ConcurrentHashMap<DeviceCallback,DeviceListener> mDeviceListeners = + new ConcurrentHashMap<DeviceCallback,DeviceListener>(); // Binder stub for receiving device notifications from MidiService private class DeviceListener extends IMidiDeviceListener.Stub { |