Skip to content

Commit

Permalink
Suppress lint errors RestrictedApis in lib-session
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 454943102
(cherry picked from commit 252ae4c)
  • Loading branch information
marcbaechinger committed Jun 15, 2022
1 parent 0d84cf9 commit e3e92b2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
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;
Expand Down Expand Up @@ -116,6 +117,7 @@ public BrowserRoot onGetRoot(
// 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();
Expand All @@ -141,6 +143,7 @@ public void onSubscribe(String id, Bundle option) {
});
}

@SuppressLint("RestrictedApi")
@Override
public void onUnsubscribe(String id) {
@Nullable ControllerInfo controller = getCurrentController();
Expand Down

0 comments on commit e3e92b2

Please sign in to comment.