[Android] Remove warnings for custom bindings

Geoffrey Métais git at videolan.org
Thu Jun 9 15:07:10 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun  9 14:59:03 2016 +0200| [315209e92e9f84a8ac1214d6ce7ea11c6381720f] | committer: Geoffrey Métais

Remove warnings for custom bindings

> https://code.videolan.org/videolan/vlc-android/commit/315209e92e9f84a8ac1214d6ce7ea11c6381720f
---

 .../src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java     | 10 +++++-----
 vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java      |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java b/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
index 2263318..3987e60 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
@@ -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();
diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java b/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
index 52e2aa2..21d1758 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
@@ -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:



More information about the Android mailing list