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

Commit bbaf48b3 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android (Google) Code Review
Browse files

Merge "UsbAlsaManager: Fix NPE when running in emulator"

parents 18191b4a 1f13872a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -142,10 +142,12 @@ public final class UsbAlsaManager {

        // add existing alsa devices
        File[] files = new File(ALSA_DIRECTORY).listFiles();
        if (files != null) {
            for (int i = 0; i < files.length; i++) {
                alsaFileAdded(files[i].getName());
            }
        }
    }

    // Notifies AudioService when a device is added or removed
    // audioDevice - the AudioDevice that was added or removed