[Android] Fix async loader aborting image load
Geoffrey Métais
git at videolan.org
Mon Dec 21 17:22:07 CET 2015
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Dec 21 09:50:31 2015 +0100| [df0e0a03e0c5017585f27f25d1adf40d40587670] | committer: Geoffrey Métais
Fix async loader aborting image load
We ensure all binding tasks are executed before setting a rebind
callback.
> https://code.videolan.org/videolan/vlc-android/commit/df0e0a03e0c5017585f27f25d1adf40d40587670
---
vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java | 1 +
1 file changed, 1 insertion(+)
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 20379d1..40dbb9d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/AsyncImageLoader.java
@@ -113,6 +113,7 @@ public class AsyncImageLoader {
protected CoverFetcher(ViewDataBinding binding){
this.binding = binding;
+ this.binding.executePendingBindings();
this.binding.addOnRebindCallback(rebindCallbacks);
}
More information about the Android
mailing list