make sure the menu Filter button is visible when appropriate

This commit is contained in:
tibbi 2021-07-19 16:59:21 +02:00
parent c99b6f9391
commit ea1ea33268
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
override fun onPrepareOptionsMenu(menu: Menu): Boolean {
menu.apply {
findItem(R.id.refresh_caldav_calendars).isVisible = config.caldavSync
findItem(R.id.filter).isVisible = mShouldFilterBeVisible
}
return true