mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Suppress lint errors RestrictedApis
in lib-session
PiperOrigin-RevId: 454943102 (cherry picked from commit 252ae4c7a34889b8622cc2750c238dc40be0277b)
This commit is contained in:
parent
0d84cf9210
commit
e3e92b2448
@ -24,6 +24,7 @@ import static androidx.media3.common.util.Util.postOrRun;
|
||||
import static androidx.media3.session.LibraryResult.RESULT_SUCCESS;
|
||||
import static androidx.media3.session.MediaUtils.TRANSACTION_SIZE_LIMIT_IN_BYTES;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.BadParcelableException;
|
||||
import android.os.Bundle;
|
||||
import android.os.RemoteException;
|
||||
@ -116,6 +117,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
// TODO(b/192455639): Optimize potential multiple calls of
|
||||
// MediaBrowserCompat.SubscriptionCallback#onChildrenLoaded() with the same
|
||||
// content.
|
||||
@SuppressLint("RestrictedApi")
|
||||
@Override
|
||||
public void onSubscribe(String id, Bundle option) {
|
||||
@Nullable ControllerInfo controller = getCurrentController();
|
||||
@ -141,6 +143,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
});
|
||||
}
|
||||
|
||||
@SuppressLint("RestrictedApi")
|
||||
@Override
|
||||
public void onUnsubscribe(String id) {
|
||||
@Nullable ControllerInfo controller = getCurrentController();
|
||||
|
Loading…
x
Reference in New Issue
Block a user