[Android] History: propagate onUpdateFinished event
Geoffrey Métais
git at videolan.org
Wed Apr 3 17:30:34 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 3 17:27:11 2019 +0200| [5da2faa26b761e96b5270927b8f3ec8a095a568f] | committer: Geoffrey Métais
History: propagate onUpdateFinished event
Fix #805
> https://code.videolan.org/videolan/vlc-android/commit/5da2faa26b761e96b5270927b8f3ec8a095a568f
---
vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java | 6 +++---
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
index ade8a42d9..8bfeae51b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
@@ -74,8 +74,6 @@ public class HistoryAdapter extends DiffUtilAdapter<MediaWrapper, HistoryAdapter
}
}
-
-
List<MediaWrapper> getSelection() {
final List<MediaWrapper> selection = new LinkedList<>();
for (MediaWrapper media : getDataset()) {
@@ -120,5 +118,7 @@ public class HistoryAdapter extends DiffUtilAdapter<MediaWrapper, HistoryAdapter
}
@Override
- protected void onUpdateFinished() {}
+ protected void onUpdateFinished() {
+ mEventsHandler.onUpdateFinished(this);
+ }
}
\ No newline at end of file
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
index 8b2631fa1..7dc949202 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
@@ -262,7 +262,7 @@ public class HistoryFragment extends MediaBrowserFragment<HistoryModel> implemen
@Override
public void onUpdateFinished(RecyclerView.Adapter adapter) {
- invalidateActionMode();
UiTools.updateSortTitles(this);
+ mSwipeRefreshLayout.setRefreshing(false);
}
}
More information about the Android
mailing list