Merge "UsbMidiDevice: fix MIDI flush()"

This commit is contained in:
Treehugger Robot
2016-08-17 13:57:33 +00:00
committed by Gerrit Code Review

View File

@@ -127,6 +127,14 @@ public final class UsbMidiDevice implements Closeable {
public void setReceiver(MidiReceiver receiver) { public void setReceiver(MidiReceiver receiver) {
mReceiver = receiver; mReceiver = receiver;
} }
@Override
public void onFlush() throws IOException {
MidiReceiver receiver = mReceiver;
if (receiver != null) {
receiver.flush();
}
}
} }
public static UsbMidiDevice create(Context context, Bundle properties, int card, int device) { public static UsbMidiDevice create(Context context, Bundle properties, int card, int device) {