Merge changes Ib3c350ba,I9f6b17a6
* changes: MediaController: Make getTag() public MediaRouter: Remove hidden annotation usages
This commit is contained in:
@@ -27355,6 +27355,7 @@ package android.media.session {
|
||||
method public int getRatingType();
|
||||
method @Nullable public android.app.PendingIntent getSessionActivity();
|
||||
method @NonNull public android.media.session.MediaSession.Token getSessionToken();
|
||||
method public String getTag();
|
||||
method @NonNull public android.media.session.MediaController.TransportControls getTransportControls();
|
||||
method public void registerCallback(@NonNull android.media.session.MediaController.Callback);
|
||||
method public void registerCallback(@NonNull android.media.session.MediaController.Callback, @Nullable android.os.Handler);
|
||||
|
||||
@@ -486,7 +486,6 @@ public final class MediaController {
|
||||
* Get the session's tag for debugging purposes.
|
||||
*
|
||||
* @return The session's tag.
|
||||
* @hide
|
||||
*/
|
||||
public String getTag() {
|
||||
if (mTag == null) {
|
||||
|
||||
@@ -2357,8 +2357,7 @@ public class MediaRouter {
|
||||
return;
|
||||
}
|
||||
if (mPlaybackType == RemoteControlClient.PLAYBACK_TYPE_REMOTE) {
|
||||
@VolumeProvider.ControlType int volumeControl =
|
||||
VolumeProvider.VOLUME_CONTROL_FIXED;
|
||||
int volumeControl = VolumeProvider.VOLUME_CONTROL_FIXED;
|
||||
switch (mVolumeHandling) {
|
||||
case RemoteControlClient.PLAYBACK_VOLUME_VARIABLE:
|
||||
volumeControl = VolumeProvider.VOLUME_CONTROL_ABSOLUTE;
|
||||
@@ -2384,8 +2383,7 @@ public class MediaRouter {
|
||||
|
||||
class SessionVolumeProvider extends VolumeProvider {
|
||||
|
||||
public SessionVolumeProvider(@VolumeProvider.ControlType int volumeControl,
|
||||
int maxVolume, int currentVolume) {
|
||||
SessionVolumeProvider(int volumeControl, int maxVolume, int currentVolume) {
|
||||
super(volumeControl, maxVolume, currentVolume);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user