Merge "Fix for MidiManager bug" into mnc-dev

This commit is contained in:
Ricardo Garcia
2015-07-20 18:03:41 +00:00
committed by Android (Google) Code Review

View File

@@ -691,6 +691,9 @@ final class SystemServiceRegistry {
@Override
public MidiManager createService(ContextImpl ctx) {
IBinder b = ServiceManager.getService(Context.MIDI_SERVICE);
if (b == null) {
return null;
}
return new MidiManager(IMidiManager.Stub.asInterface(b));
}});