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

Commit 9a404486 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioManager: update javadoc for setCommunicationDevice

Remove exception handling from example code for setCommunicationDevice.

Bug: 179709789
Test: make
Change-Id: I4f3285b128825ffba683ce32ffce4066878100b9
parent c7f9fc81
Loading
Loading
Loading
Loading
+14 −18
Original line number Diff line number Diff line
@@ -7087,7 +7087,6 @@ public class AudioManager {
     * <pre class="prettyprint">
     * // Get an AudioManager instance
     * AudioManager audioManager = Context.getSystemService(AudioManager.class);
     * try {
     * AudioDeviceInfo speakerDevice = null;
     * List<AudioDeviceInfo> devices = audioManager.getAvailableCommunicationDevices();
     * for (AudioDeviceInfo device : devices) {
@@ -7105,9 +7104,6 @@ public class AudioManager {
     *     // Turn speakerphone OFF.
     *     audioManager.clearCommunicationDevice();
     * }
     * } catch (IllegalArgumentException e) {
     *     // Handle exception.
     * }
     * </pre>
     * @param device the requested audio device.
     * @return <code>true</code> if the request was accepted, <code>false</code> otherwise.