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
af962ea3
Commit
af962ea3
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Prevent IllegalStateException in permissions fragment
parent
97012710
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/helpers/hf/StoragePermissionsDelegate.java
+3
-2
3 additions, 2 deletions
...deolan/vlc/gui/helpers/hf/StoragePermissionsDelegate.java
with
3 additions
and
2 deletions
vlc-android/src/org/videolan/vlc/gui/helpers/hf/StoragePermissionsDelegate.java
+
3
−
2
View file @
af962ea3
...
...
@@ -104,10 +104,11 @@ public class StoragePermissionsDelegate extends BaseHeadlessFragment {
}
public
static
void
askStoragePermission
(
@NonNull
FragmentActivity
activity
)
{
if
(
activity
.
isFinishing
())
return
;
final
FragmentManager
fm
=
activity
.
getSupportFragmentManager
();
Fragment
fragment
=
fm
.
findFragmentByTag
(
TAG
);
final
Fragment
fragment
=
fm
.
findFragmentByTag
(
TAG
);
if
(
fragment
==
null
)
fm
.
beginTransaction
().
add
(
new
StoragePermissionsDelegate
(),
TAG
).
commit
();
fm
.
beginTransaction
().
add
(
new
StoragePermissionsDelegate
(),
TAG
).
commit
AllowingStateLoss
();
else
((
StoragePermissionsDelegate
)
fragment
).
requestStorageAccess
();
}
...
...
This diff is collapsed.
Click to expand it.
Geoffrey Métais
@Dekans
mentioned in commit
193951d3
·
7 years ago
mentioned in commit
193951d3
mentioned in commit 193951d391876c9396876c1b4f2cc7b668b286e7
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