From 6c68564cce54debbeffa90dff2fb81bfbccd77a7 Mon Sep 17 00:00:00 2001 From: Agnieszka C <85929121+Aga-C@users.noreply.github.com> Date: Mon, 29 Nov 2021 23:31:11 +0100 Subject: [PATCH] Fixed empty tabs --- .../contacts/pro/fragments/MyViewPagerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt index 6818d3eb..81d74b60 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt @@ -132,7 +132,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) currentHash += it.getHashWithoutPrivatePhoto() } - if (currentHash != lastHashCode || skipHashComparing) { + if (currentHash != lastHashCode || skipHashComparing || filtered.size == 0) { skipHashComparing = false lastHashCode = currentHash activity?.runOnUiThread {