Commit feefaacb by tonihei Committed by Oliver Woodman

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
parent 1c7bb289
Showing with 2 additions and 0 deletions
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* Display last frame when seeking to end of stream * Display last frame when seeking to end of stream
([#2568](https://github.com/google/ExoPlayer/issues/2568)). ([#2568](https://github.com/google/ExoPlayer/issues/2568)).
* SmoothStreaming: Parse text stream `Subtype` into `Format.roleFlags`. * 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 ### ### 2.10.2 ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment