Fix linter errors in `DemoMediaLibrarySessionCallback.kt`

PiperOrigin-RevId: 644002147
(cherry picked from commit ed07ac5d7d)
This commit is contained in:
michaelkatz 2024-06-17 07:34:17 -07:00 committed by microkatz
parent f36395ae66
commit 32bedfa93e
1 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,7 @@ open class DemoMediaLibrarySessionCallback(context: Context) :
)
return Futures.immediateFuture(SessionResult(SessionResult.RESULT_SUCCESS))
}
return Futures.immediateFuture(SessionResult(SessionResult.RESULT_ERROR_NOT_SUPPORTED))
return Futures.immediateFuture(SessionResult(SessionError.ERROR_NOT_SUPPORTED))
}
override fun onGetLibraryRoot(
@ -125,6 +125,7 @@ open class DemoMediaLibrarySessionCallback(context: Context) :
return Futures.immediateFuture(LibraryResult.ofItem(MediaItemTree.getRootItem(), params))
}
@OptIn(UnstableApi::class) // SessionError.ERROR_BAD_VALUE
override fun onGetItem(
session: MediaLibraryService.MediaLibrarySession,
browser: MediaSession.ControllerInfo,
@ -136,6 +137,7 @@ open class DemoMediaLibrarySessionCallback(context: Context) :
return Futures.immediateFuture(LibraryResult.ofError(SessionError.ERROR_BAD_VALUE))
}
@OptIn(UnstableApi::class) // SessionError.ERROR_BAD_VALUE
override fun onGetChildren(
session: MediaLibraryService.MediaLibrarySession,
browser: MediaSession.ControllerInfo,