Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-Android
Commits
315209e9
Commit
315209e9
authored
Jun 09, 2016
by
Geoffrey Métais
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove warnings for custom bindings
parent
da59ddbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
...id/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
+5
-5
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+1
-1
No files found.
vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
View file @
315209e9
...
...
@@ -124,7 +124,7 @@ public class AsyncImageLoader {
* Custom bindings to trigger image (dwon)loading
*/
@BindingAdapter
({
"
bind:
imageUri"
,
"
bind:
binding"
})
@BindingAdapter
({
"imageUri"
,
"binding"
})
public
static
void
downloadIcon
(
final
View
v
,
final
Uri
imageUri
,
final
ViewDataBinding
vdb
)
{
AsyncImageLoader
.
LoadImage
(
new
Callbacks
()
{
@Override
...
...
@@ -141,7 +141,7 @@ public class AsyncImageLoader {
}
@BindingAdapter
({
"
bind:
mediaWithArt"
})
@BindingAdapter
({
"mediaWithArt"
})
public
static
void
downloadIcon
(
View
v
,
MediaWrapper
mw
)
{
if
(
mw
==
null
)
return
;
...
...
@@ -154,7 +154,7 @@ public class AsyncImageLoader {
}
@BindingAdapter
({
"
bind:
media"
})
@BindingAdapter
({
"media"
})
public
static
void
loadPicture
(
ImageView
v
,
MediaWrapper
mw
)
{
ViewDataBinding
vdb
=
null
;
if
(
v
.
getTag
()
instanceof
ViewDataBinding
)
...
...
@@ -162,7 +162,7 @@ public class AsyncImageLoader {
loadPicture
(
v
,
mw
,
vdb
);
}
@BindingAdapter
({
"
bind:
item"
})
@BindingAdapter
({
"item"
})
public
static
void
loadPicture
(
final
ImageView
v
,
final
AudioBrowserListAdapter
.
ListItem
item
)
{
final
Object
tag
=
v
.
getTag
();
if
(
tag
==
null
||
!(
tag
instanceof
ViewDataBinding
))
...
...
@@ -190,7 +190,7 @@ public class AsyncImageLoader {
},
v
);
}
@BindingAdapter
({
"
bind:
media"
,
"
bind:
binding"
})
@BindingAdapter
({
"media"
,
"binding"
})
public
static
void
loadPicture
(
ImageView
v
,
MediaWrapper
mw
,
ViewDataBinding
vdb
)
{
if
(
mw
instanceof
MediaGroup
)
mw
=
((
MediaGroup
)
mw
).
getFirstMedia
();
...
...
vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
View file @
315209e9
...
...
@@ -141,7 +141,7 @@ public class UiTools {
* @param alignMode Align mode as read from preferences
* @param t Reference to the textview
*/
@BindingAdapter
({
"
bind:
alignMode"
})
@BindingAdapter
({
"alignMode"
})
public
static
void
setAlignModeByPref
(
TextView
t
,
int
alignMode
)
{
switch
(
alignMode
)
{
case
0
:
...
...
Geoffrey Métais
@Dekans
mentioned in commit
f0873fbc
·
Jun 09, 2016
mentioned in commit
f0873fbc
mentioned in commit f0873fbc49a5232ddc80dde4fd55927c5efb914b
Toggle commit list
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