removing an unnecessary options menu invalidation call
This commit is contained in:
parent
578c7ed30f
commit
dd8058704f
|
@ -126,7 +126,6 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||||
val newShouldFilterBeVisible = it.size > 1 || config.displayEventTypes.isEmpty()
|
val newShouldFilterBeVisible = it.size > 1 || config.displayEventTypes.isEmpty()
|
||||||
if (newShouldFilterBeVisible != mShouldFilterBeVisible) {
|
if (newShouldFilterBeVisible != mShouldFilterBeVisible) {
|
||||||
mShouldFilterBeVisible = newShouldFilterBeVisible
|
mShouldFilterBeVisible = newShouldFilterBeVisible
|
||||||
invalidateOptionsMenu()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue