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

Commit 6c8e5955 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MIDI: Fix UserManager.getMainUser() crash" into main

parents 4c63d44e b6898d1c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -420,14 +420,11 @@ public class MidiService extends IMidiManager.Stub {
            setDeviceServer(server);
        }

        @RequiresPermission(anyOf = {Manifest.permission.QUERY_USERS,
                Manifest.permission.CREATE_USERS,
                Manifest.permission.MANAGE_USERS})
        public Device(BluetoothDevice bluetoothDevice) {
            mBluetoothDevice = bluetoothDevice;
            mServiceInfo = null;
            mUid = mBluetoothServiceUid;
            mUserId = mUserManager.getMainUser().getIdentifier();
            mUserId = UserHandle.getUserId(mUid);
        }

        private void setDeviceServer(IMidiDeviceServer server) {