[Android] Unregister callbacks once parsing is done
Geoffrey Métais
git at videolan.org
Thu Aug 3 18:52:31 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Aug 3 18:51:04 2017 +0200| [f9f95c526cc2532f82bd6b49532f0b48af747c36] | committer: Geoffrey Métais
Unregister callbacks once parsing is done
Avoids receiving media updates once media list is final
Remove duplicates videos from groups
> https://code.videolan.org/videolan/vlc-android/commit/f9f95c526cc2532f82bd6b49532f0b48af747c36
---
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 52cd0253b..a25db0263 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -422,6 +422,8 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
@Override
protected void onParsingServiceFinished() {
+ mMediaLibrary.removeMediaUpdatedCb();
+ mMediaLibrary.removeMediaAddedCb();
mHandler.sendEmptyMessage(UPDATE_LIST);
}
More information about the Android
mailing list