Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eaee562a authored by Phil Burk's avatar Phil Burk Committed by android-build-merger
Browse files

Merge "UsbMidiDevice: fix MIDI flush()" into nyc-dev am: 21e8e96f

am: 65657590

* commit '65657590':
  UsbMidiDevice: fix MIDI flush()

Change-Id: Idba8e28ffac73f3f7bec74329410073bee80962c
parents 6688c274 65657590
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -127,6 +127,14 @@ public final class UsbMidiDevice implements Closeable {
        public void setReceiver(MidiReceiver 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) {