[Android] Fix display of delete history icon when loading history
Nicolas Pomepuy
git at videolan.org
Tue Aug 13 10:27:11 CEST 2019
vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Aug 12 12:06:36 2019 +0200| [30f0748a7fac64cf34edfcc43b03206f43591ec2] | committer: Geoffrey Métais
Fix display of delete history icon when loading history
(cherry picked from commit 89da6bf3f3328059d0faff83f09a15bec14f82e9)
> https://code.videolan.org/videolan/vlc-android/commit/30f0748a7fac64cf34edfcc43b03206f43591ec2
---
vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
index ca6e2bf6f..ee5b8d111 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryFragment.kt
@@ -101,6 +101,7 @@ class HistoryFragment : MediaBrowserFragment<HistoryModel>(), IRefreshable, IHis
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
inflater.inflate(R.menu.fragment_option_history, menu)
super.onCreateOptionsMenu(menu, inflater)
+ activity?.invalidateOptionsMenu()
}
override fun onPrepareOptionsMenu(menu: Menu) {
More information about the Android
mailing list