media/demos/session/src/main
tonihei fe7c62afe0 Add missing Future cancellation checks
Future.isDone and getDone doesn't imply the Future was successful
and it may have been cancelled or failed.

In case where we handle failure, we should also handle cancellation
to avoid CancellationException to bubble up unchecked.

In demo app code where we use isDone for field initialization, we
want to crash in the failure case (usually security exception where
the connection is disallowed), but we want to gracefully handle
cancellation. Cancellation of these variables usually happens in
Activity.onDestroy/onStop, but methods may be called after this point.

#minor-release

PiperOrigin-RevId: 572178018
2023-10-10 02:14:24 -07:00
..
java/androidx/media3/demo/session Add missing Future cancellation checks 2023-10-10 02:14:24 -07:00
res Use more targeted listening in session PlayerActivity 2023-10-09 09:01:14 -07:00
AndroidManifest.xml Add MEDIA_PLAY_FROM_SEARCH to manifest of session demo app 2023-10-06 06:59:19 -07:00