Remove MediaSessionImplBase, MediaSessionImplApi18, and MediaSessionImplApi19

This commit is contained in:
Gaëtan Muller 2024-07-15 14:58:23 +02:00 committed by Ian Baker
parent 0c564004c4
commit 0593b36dad
2 changed files with 0 additions and 1622 deletions

View File

@ -59,7 +59,6 @@ public abstract class VolumeProviderCompat {
private final int mMaxVolume;
@Nullable private final String mControlId;
private int mCurrentVolume;
@Nullable private Callback mCallback;
@Nullable private VolumeProvider mVolumeProviderFwk;
@ -132,9 +131,6 @@ public abstract class VolumeProviderCompat {
mCurrentVolume = currentVolume;
VolumeProvider volumeProviderFwk = (VolumeProvider) getVolumeProvider();
volumeProviderFwk.setCurrentVolume(currentVolume);
if (mCallback != null) {
mCallback.onVolumeChanged(this);
}
}
/**
@ -162,15 +158,6 @@ public abstract class VolumeProviderCompat {
*/
public void onAdjustVolume(int direction) {}
/**
* Sets a callback to receive volume changes.
*
* <p>Used internally by the support library.
*/
public void setCallback(@Nullable Callback callback) {
mCallback = callback;
}
/**
* Gets the underlying framework {@link android.media.VolumeProvider} object.
*
@ -208,9 +195,4 @@ public abstract class VolumeProviderCompat {
}
return mVolumeProviderFwk;
}
/** Listens for changes to the volume. */
public abstract static class Callback {
public abstract void onVolumeChanged(VolumeProviderCompat volumeProvider);
}
}