[Android] History: propagate onUpdateFinished event
Geoffrey Métais
git at videolan.org
Wed Apr 3 17:31:11 CEST 2019
vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 3 17:27:11 2019 +0200| [67e813c5feee317eea74146d3f74e95fd290fe75] | committer: Geoffrey Métais
History: propagate onUpdateFinished event
Fix #805
(cherry picked from commit 5da2faa26b761e96b5270927b8f3ec8a095a568f)
> https://code.videolan.org/videolan/vlc-android/commit/67e813c5feee317eea74146d3f74e95fd290fe75
---
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 42521a0d4..c5055e557 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
@@ -69,8 +69,6 @@ public class HistoryAdapter extends DiffUtilAdapter<MediaWrapper, HistoryAdapter
}
}
-
-
List<MediaWrapper> getSelection() {
final List<MediaWrapper> selection = new LinkedList<>();
for (MediaWrapper media : getDataset()) {
@@ -115,5 +113,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 ab2cc269b..54bac64ea 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.java
@@ -250,7 +250,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