Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
6cbd8ba5
Commit
6cbd8ba5
authored
4 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Force displaying the permission dialog if it has previously exited without explicit choice
parent
56b39c73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!719
3.3 fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/gui/helpers/hf/StoragePermissionsDelegate.kt
+1
-1
1 addition, 1 deletion
...videolan/vlc/gui/helpers/hf/StoragePermissionsDelegate.kt
with
1 addition
and
1 deletion
application/vlc-android/src/org/videolan/vlc/gui/helpers/hf/StoragePermissionsDelegate.kt
+
1
−
1
View file @
6cbd8ba5
...
...
@@ -132,7 +132,7 @@ class StoragePermissionsDelegate : BaseHeadlessFragment() {
suspend
fun
FragmentActivity
.
getStoragePermission
(
write
:
Boolean
=
false
)
:
Boolean
{
if
(
isFinishing
)
return
false
val
model
:
PermissionViewmodel
by
viewModels
()
if
(
model
.
isCompleted
)
return
model
.
deferredGrant
.
getCompleted
()
if
(
model
.
isCompleted
&&
storageAccessGranted
.
value
==
true
)
return
model
.
deferredGrant
.
getCompleted
()
if
(!
model
.
permissionPending
)
{
model
.
setupDeferred
()
val
fragment
=
StoragePermissionsDelegate
().
apply
{
...
...
This diff is collapsed.
Click to expand it.
Nicolas Pomepuy
@Aza
mentioned in commit
1976e830
·
4 years ago
mentioned in commit
1976e830
mentioned in commit 1976e83088a1a238bd4933d344931f4f17106451
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment