Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
cd769ec1
Commit
cd769ec1
authored
Jun 22, 2012
by
Sébastien Toque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
URLDecoder.decode(string) is deprecated, use the encode(String,String) instead
parent
176a61a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
...d/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+5
-1
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
cd769ec1
...
...
@@ -21,6 +21,7 @@
package
org.videolan.vlc.gui.video
;
import
java.io.File
;
import
java.io.UnsupportedEncodingException
;
import
java.lang.reflect.Method
;
import
java.net.URLDecoder
;
...
...
@@ -849,7 +850,10 @@ public class VideoPlayerActivity extends Activity {
if
(
lastTime
>
0
&&
location
.
equals
(
lastLocation
))
mLibVLC
.
setTime
(
lastTime
);
title
=
URLDecoder
.
decode
(
location
);
try
{
title
=
URLDecoder
.
decode
(
location
,
"UTF-8"
);
}
catch
(
UnsupportedEncodingException
e
)
{
}
if
(
title
.
startsWith
(
"file:"
))
{
title
=
new
File
(
title
).
getName
();
int
dotIndex
=
title
.
lastIndexOf
(
'.'
);
...
...
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