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
15
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
cb3faedd
There was an error fetching the commit references. Please try again later.
Commit
cb3faedd
authored
4 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix PathOperation crash
parent
568788e6
No related branches found
No related tags found
1 merge request
!721
Add a flag and update kt version to get more info on the JobCancellationException crash
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/viewmodels/browser/PathOperationDelegate.kt
+2
-2
2 additions, 2 deletions
.../videolan/vlc/viewmodels/browser/PathOperationDelegate.kt
with
2 additions
and
2 deletions
application/vlc-android/src/org/videolan/vlc/viewmodels/browser/PathOperationDelegate.kt
+
2
−
2
View file @
cb3faedd
...
...
@@ -43,7 +43,7 @@ class PathOperationDelegate : IPathOperationDelegate {
*/
override
fun
appendPathToUri
(
path
:
String
,
uri
:
Uri
.
Builder
)
{
var
newPath
=
path
for
(
i
in
0
..
storages
.
size
())
if
(
storages
.
valueAt
(
i
)
==
newPath
)
newPath
=
storages
.
keyAt
(
i
)
for
(
i
in
0
until
storages
.
size
())
if
(
storages
.
valueAt
(
i
)
==
newPath
)
newPath
=
storages
.
keyAt
(
i
)
newPath
.
split
(
'/'
).
forEach
{
uri
.
appendPath
(
it
)
}
...
...
@@ -57,7 +57,7 @@ class PathOperationDelegate : IPathOperationDelegate {
*/
override
fun
replaceStoragePath
(
path
:
String
):
String
{
try
{
if
(
storages
.
size
()
>
0
)
for
(
i
in
0
..
storages
.
size
())
if
(
path
.
startsWith
(
storages
.
keyAt
(
i
)))
return
path
.
replace
(
storages
.
keyAt
(
i
),
storages
.
valueAt
(
i
))
if
(
storages
.
size
()
>
0
)
for
(
i
in
0
until
storages
.
size
())
if
(
path
.
startsWith
(
storages
.
keyAt
(
i
)))
return
path
.
replace
(
storages
.
keyAt
(
i
),
storages
.
valueAt
(
i
))
}
catch
(
e
:
IllegalStateException
)
{
}
return
path
...
...
This diff is collapsed.
Click to expand it.
Nicolas Pomepuy
@Aza
mentioned in commit
763023be
·
4 years ago
mentioned in commit
763023be
mentioned in commit 763023be04004afc6b37f02260ed2419e68db3e2
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