From 91c8664ca17d04d1ef661e9425469c18596f26c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 11 Sep 2023 17:08:43 +0200 Subject: [PATCH 1/3] Close keyboard when home button is pressed --- .../com/simplemobiletools/launcher/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt index 88b971a..a8b6a3a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt @@ -127,6 +127,7 @@ class MainActivity : SimpleActivity(), FlingListener { closeAppDrawer() closeWidgetsFragment() } + hideKeyboard() if (intent != null) { handleIntentAction(intent) } From afa46e76bf0ca155da9164011cd723f0151918b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 11 Sep 2023 17:10:33 +0200 Subject: [PATCH 2/3] Clear search when home button is pressed --- .../com/simplemobiletools/launcher/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt index a8b6a3a..d2799bf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt @@ -127,7 +127,7 @@ class MainActivity : SimpleActivity(), FlingListener { closeAppDrawer() closeWidgetsFragment() } - hideKeyboard() + binding.allAppsFragment.searchBar.closeSearch() if (intent != null) { handleIntentAction(intent) } From 2f6e0aaf53c59c4207a50b5eac980273f74126e8 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 11 Sep 2023 21:53:17 +0200 Subject: [PATCH 3/3] adding a new line --- .../com/simplemobiletools/launcher/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt index d2799bf..fb9c107 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt @@ -127,6 +127,7 @@ class MainActivity : SimpleActivity(), FlingListener { closeAppDrawer() closeWidgetsFragment() } + binding.allAppsFragment.searchBar.closeSearch() if (intent != null) { handleIntentAction(intent)