Fix javadoc for MediaRouter2.getInstance(Context, String)

The required permission mentioned in the javadoc did not match the
actual permission being enforced. This seems to have been an oversight
in ag/14182411.

Test: N/A
Bug: 238178508
Change-Id: Iec73614df84cafb2698a71eb0c63c0f939e40ae1
This commit is contained in:
Iván Budnik
2023-04-05 11:29:36 +00:00
parent 752f5a6e56
commit 04c3199cbb

View File

@@ -178,7 +178,7 @@ public final class MediaRouter2 {
*
* <ul>
* <li>{@link #getControllers()}
* <li>{@link #getController(String)}}
* <li>{@link #getController(String)}
* <li>{@link TransferCallback#onTransfer(RoutingController, RoutingController)}
* <li>{@link TransferCallback#onStop(RoutingController)}
* <li>{@link ControllerCallback#onControllerUpdated(RoutingController)}
@@ -191,7 +191,8 @@ public final class MediaRouter2 {
* <p>Finally, it will have no effect to call {@link #setOnGetControllerHintsListener}.
*
* @param clientPackageName the package name of the app to control
* @throws SecurityException if the caller doesn't have MODIFY_AUDIO_ROUTING permission.
* @throws SecurityException if the caller doesn't have {@link
* Manifest.permission#MEDIA_CONTENT_CONTROL MEDIA_CONTENT_CONTROL} permission.
* @hide
*/
@SystemApi