From a2d0738a6807551bd1f7ac5d07987755106c48f4 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 3 Sep 2023 21:47:45 +0200 Subject: [PATCH] fix: only call openSearch once without doubleTapToSearch --- .../org/joinmastodon/android/fragments/HomeFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java index 77245b493..d2f7eb786 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java @@ -309,13 +309,13 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene return true; } if(tab==R.id.tab_search){ - //int previousTab = currentTab; +// int previousTab = currentTab; onTabSelected(R.id.tab_search); tabBar.selectTab(R.id.tab_search); - //if(previousTab != R.id.tab_search) - discoverFragment.openSearch(); + if(!GlobalUserPreferences.doubleTapToSearch) + discoverFragment.openSearch(); return true; }