Skip to content
Snippets Groups Projects
Commit abc36b6d authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Videos: use proper menu update function

(cherry picked from commit 513de0b3)
parent 5c7e9110
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,7 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
if (!mediaLibrary.isWorking) handler.sendEmptyMessage(UNSET_REFRESHING)
updateEmptyView()
setFabPlayVisibility(true)
UiTools.updateSortTitles(this@VideoGridFragment)
menu?.let { UiTools.updateSortTitles(it, viewModel.provider) }
}
restoreMultiSelectHelper()
}
......
......@@ -52,7 +52,7 @@ class AlbumSongsViewModel(context: Context, val parent: MediaLibraryItem) : Medi
else -> watchMedia()
}
//Initial state coming from preferences and falling back to [providersInCard] hardcoded values
for (i in 0 until displayModeKeys.size) {
for (i in displayModeKeys.indices) {
providersInCard[i] = settings.getBoolean(displayModeKeys[i], providersInCard[i])
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment