Remove MediaSessionImplBase
, MediaSessionImplApi18
, and MediaSessionImplApi19
This commit is contained in:
parent
0c564004c4
commit
0593b36dad
File diff suppressed because it is too large
Load Diff
@ -59,7 +59,6 @@ public abstract class VolumeProviderCompat {
|
|||||||
private final int mMaxVolume;
|
private final int mMaxVolume;
|
||||||
@Nullable private final String mControlId;
|
@Nullable private final String mControlId;
|
||||||
private int mCurrentVolume;
|
private int mCurrentVolume;
|
||||||
@Nullable private Callback mCallback;
|
|
||||||
|
|
||||||
@Nullable private VolumeProvider mVolumeProviderFwk;
|
@Nullable private VolumeProvider mVolumeProviderFwk;
|
||||||
|
|
||||||
@ -132,9 +131,6 @@ public abstract class VolumeProviderCompat {
|
|||||||
mCurrentVolume = currentVolume;
|
mCurrentVolume = currentVolume;
|
||||||
VolumeProvider volumeProviderFwk = (VolumeProvider) getVolumeProvider();
|
VolumeProvider volumeProviderFwk = (VolumeProvider) getVolumeProvider();
|
||||||
volumeProviderFwk.setCurrentVolume(currentVolume);
|
volumeProviderFwk.setCurrentVolume(currentVolume);
|
||||||
if (mCallback != null) {
|
|
||||||
mCallback.onVolumeChanged(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -162,15 +158,6 @@ public abstract class VolumeProviderCompat {
|
|||||||
*/
|
*/
|
||||||
public void onAdjustVolume(int direction) {}
|
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.
|
* Gets the underlying framework {@link android.media.VolumeProvider} object.
|
||||||
*
|
*
|
||||||
@ -208,9 +195,4 @@ public abstract class VolumeProviderCompat {
|
|||||||
}
|
}
|
||||||
return mVolumeProviderFwk;
|
return mVolumeProviderFwk;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Listens for changes to the volume. */
|
|
||||||
public abstract static class Callback {
|
|
||||||
public abstract void onVolumeChanged(VolumeProviderCompat volumeProvider);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user