[Android] Fix history state on resume

Nicolas Pomepuy git at videolan.org
Mon Apr 29 09:46:32 CEST 2019


vlc-android | branch: fix_history_state | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Apr 29 09:46:27 2019 +0200| [61c3fac2e56583e4b75aa22659e4e2ad407c0f4b] | committer: Nicolas Pomepuy

Fix history state on resume

> https://code.videolan.org/videolan/vlc-android/commit/61c3fac2e56583e4b75aa22659e4e2ad407c0f4b
---

 vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
index 4fea54069..749653f91 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
@@ -118,6 +118,11 @@ class HistoryFragment : MediaBrowserFragment<HistoryModel>(), IRefreshable, IHis
 
     override fun clear() {}
 
+    override fun onResume() {
+        super.onResume()
+        refresh()
+    }
+
     private fun updateEmptyView() {
         if (mHistoryAdapter.isEmpty()) {
             swipeRefreshLayout!!.visibility = View.GONE



More information about the Android mailing list