Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
d220f5f8
Commit
d220f5f8
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Decode streams title & url for display
parent
108d27ba
No related branches found
No related tags found
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/network/MRLAdapter.java
+6
-5
6 additions, 5 deletions
vlc-android/src/org/videolan/vlc/gui/network/MRLAdapter.java
with
6 additions
and
5 deletions
vlc-android/src/org/videolan/vlc/gui/network/MRLAdapter.java
+
6
−
5
View file @
d220f5f8
...
...
@@ -20,6 +20,7 @@
*****************************************************************************/
package
org.videolan.vlc.gui.network
;
import
android.net.Uri
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.LayoutInflater
;
import
android.view.View
;
...
...
@@ -39,12 +40,12 @@ class MRLAdapter extends RecyclerView.Adapter<MRLAdapter.ViewHolder> {
}
public
class
ViewHolder
extends
RecyclerView
.
ViewHolder
implements
View
.
OnClickListener
{
TextView
uriTv
,
titleTv
;
final
TextView
uriTv
,
titleTv
;
public
ViewHolder
(
View
v
)
{
super
(
v
);
uriTv
=
(
TextView
)
v
.
findViewById
(
R
.
id
.
mrl_item_uri
);
titleTv
=
(
TextView
)
v
.
findViewById
(
R
.
id
.
mrl_item_title
);
uriTv
=
v
.
findViewById
(
R
.
id
.
mrl_item_uri
);
titleTv
=
v
.
findViewById
(
R
.
id
.
mrl_item_title
);
itemView
.
setOnClickListener
(
this
);
}
...
...
@@ -69,8 +70,8 @@ class MRLAdapter extends RecyclerView.Adapter<MRLAdapter.ViewHolder> {
@Override
public
void
onBindViewHolder
(
final
ViewHolder
holder
,
int
position
)
{
final
HistoryItem
item
=
mDataset
[
position
];
holder
.
uriTv
.
setText
(
item
.
getMrl
());
holder
.
titleTv
.
setText
(
item
.
getTitle
());
holder
.
uriTv
.
setText
(
Uri
.
decode
(
item
.
getMrl
())
)
;
holder
.
titleTv
.
setText
(
Uri
.
decode
(
item
.
getTitle
())
)
;
}
public
void
setList
(
HistoryItem
[]
list
){
...
...
This diff is collapsed.
Click to expand it.
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