Commit 5da2faa2 authored by Geoffrey Métais's avatar Geoffrey Métais

History: propagate onUpdateFinished event

Fix #805
parent 07850f91
......@@ -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
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment