Gracefully handle revoked ACCESS_NETWORK_STATE permission.

This permission has normal access right and can't be revoked by the user.
However, an app can choose to revoke it when using ExoPlayer, e.g. if
no network is required and the app doesn't want to list this permission.

Support this use case by gracefully catching the exception in the relevant
places.

Issue:#6019
PiperOrigin-RevId: 253759332
This commit is contained in:
tonihei 2019-06-18 11:31:54 +01:00 committed by Oliver Woodman
parent 1c7bb2899c
commit feefaacb31

View file

@ -5,6 +5,8 @@
* Display last frame when seeking to end of stream
([#2568](https://github.com/google/ExoPlayer/issues/2568)).
* SmoothStreaming: Parse text stream `Subtype` into `Format.roleFlags`.
* Gracefully handle revoked `ACCESS_NETWORK_STATE` permission
([#6019](https://github.com/google/ExoPlayer/issues/6019)).
### 2.10.2 ###