Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4f5e99c5
authored
Jun 16, 2022
by
christosts
Committed by
Marc Baechinger
Jun 16, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Misc improvement in Util
#minor-release PiperOrigin-RevId: 455380010
parent
71ae88fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
library/common/src/main/java/com/google/android/exoplayer2/util/Util.java
library/common/src/main/java/com/google/android/exoplayer2/util/Util.java
View file @
4f5e99c5
...
@@ -305,9 +305,9 @@ public final class Util {
...
@@ -305,9 +305,9 @@ public final class Util {
}
}
private
static
boolean
maybeRequestReadExternalStoragePermission
(
Activity
activity
,
Uri
uri
)
{
private
static
boolean
maybeRequestReadExternalStoragePermission
(
Activity
activity
,
Uri
uri
)
{
return
SDK_INT
>=
23
&&
(
isLocalFileUri
(
uri
)
||
isMediaStoreExternalContentUri
(
uri
))
return
SDK_INT
>=
23
?
requestExternalStoragePermission
(
activity
)
&&
(
isLocalFileUri
(
uri
)
||
isMediaStoreExternalContentUri
(
uri
)
)
:
false
;
&&
requestExternalStoragePermission
(
activity
)
;
}
}
private
static
boolean
isMediaStoreExternalContentUri
(
Uri
uri
)
{
private
static
boolean
isMediaStoreExternalContentUri
(
Uri
uri
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment