From d0caadb032a1ac4c1d07140741a2cec2bb368fe7 Mon Sep 17 00:00:00 2001 From: Nishant Dande Date: Sun, 22 Oct 2023 22:18:32 +0530 Subject: [PATCH 1/3] Fix search loading issue when switching screen --- app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt b/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt index 5e2a519ab..523e982da 100644 --- a/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt +++ b/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt @@ -122,6 +122,8 @@ class SearchFragment : showData() return@observe } + if (currentQuery.isNotEmpty()) + searchText = currentQuery val applicationListRVAdapter = recyclerView?.adapter as ApplicationListRVAdapter applicationListRVAdapter.setData(mutableListOf()) -- GitLab From 75cbfb3d0c8b3611b53422d67871c32572424461 Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Fri, 27 Oct 2023 05:45:30 +0000 Subject: [PATCH 2/3] Apply 1 suggestion(s) to 1 file(s) --- .../main/java/foundation/e/apps/ui/search/SearchFragment.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt b/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt index 523e982da..286aa2d01 100644 --- a/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt +++ b/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt @@ -122,8 +122,7 @@ class SearchFragment : showData() return@observe } - if (currentQuery.isNotEmpty()) - searchText = currentQuery + if (currentQuery.isNotEmpty()) searchText = currentQuery val applicationListRVAdapter = recyclerView?.adapter as ApplicationListRVAdapter applicationListRVAdapter.setData(mutableListOf()) -- GitLab From 66e9661eb2c8b868daad7c6bd344c3e41e8a2be6 Mon Sep 17 00:00:00 2001 From: Hasib Prince Date: Fri, 27 Oct 2023 06:18:30 +0000 Subject: [PATCH 3/3] Apply 1 suggestion(s) to 1 file(s) --- app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt b/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt index 286aa2d01..b5ced9b05 100644 --- a/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt +++ b/app/src/main/java/foundation/e/apps/ui/search/SearchFragment.kt @@ -122,6 +122,7 @@ class SearchFragment : showData() return@observe } + if (currentQuery.isNotEmpty()) searchText = currentQuery val applicationListRVAdapter = recyclerView?.adapter as ApplicationListRVAdapter -- GitLab