[Android] Post item updates in recyclerview handler
Geoffrey Métais
git at videolan.org
Mon Oct 30 09:41:35 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct 30 09:40:32 2017 +0100| [68326296540d1bd2d131e947361f312c80420c78] | committer: Geoffrey Métais
Post item updates in recyclerview handler
> https://code.videolan.org/videolan/vlc-android/commit/68326296540d1bd2d131e947361f312c80420c78
---
vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 6474d3870..067841042 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -711,7 +711,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
MediaLibraryItem item = currentMediaList.get(mCurrentParsedPosition);
item.setDescription(holderText);
final int position = mCurrentParsedPosition;
- VLCApplication.runOnMainThread(new Runnable() {
+ mRecyclerView.post(new Runnable() {
@Override
public void run() {
mAdapter.notifyItemChanged(position, holderText);
More information about the Android
mailing list