mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Suppress lint errors RestrictedApis in lib-session
PiperOrigin-RevId: 454943102
(cherry picked from commit 252ae4c7a3)
This commit is contained in:
parent
0d84cf9210
commit
e3e92b2448
1 changed files with 3 additions and 0 deletions
|
|
@ -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.LibraryResult.RESULT_SUCCESS;
|
||||||
import static androidx.media3.session.MediaUtils.TRANSACTION_SIZE_LIMIT_IN_BYTES;
|
import static androidx.media3.session.MediaUtils.TRANSACTION_SIZE_LIMIT_IN_BYTES;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.os.BadParcelableException;
|
import android.os.BadParcelableException;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
|
|
@ -116,6 +117,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||||
// TODO(b/192455639): Optimize potential multiple calls of
|
// TODO(b/192455639): Optimize potential multiple calls of
|
||||||
// MediaBrowserCompat.SubscriptionCallback#onChildrenLoaded() with the same
|
// MediaBrowserCompat.SubscriptionCallback#onChildrenLoaded() with the same
|
||||||
// content.
|
// content.
|
||||||
|
@SuppressLint("RestrictedApi")
|
||||||
@Override
|
@Override
|
||||||
public void onSubscribe(String id, Bundle option) {
|
public void onSubscribe(String id, Bundle option) {
|
||||||
@Nullable ControllerInfo controller = getCurrentController();
|
@Nullable ControllerInfo controller = getCurrentController();
|
||||||
|
|
@ -141,6 +143,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("RestrictedApi")
|
||||||
@Override
|
@Override
|
||||||
public void onUnsubscribe(String id) {
|
public void onUnsubscribe(String id) {
|
||||||
@Nullable ControllerInfo controller = getCurrentController();
|
@Nullable ControllerInfo controller = getCurrentController();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue