From e27af5d1660b47938f1d1bb335d4c9af1c4aea75 Mon Sep 17 00:00:00 2001 From: Hayri Bakici Date: Thu, 25 Jan 2024 11:19:29 +0100 Subject: [PATCH 1/2] dis- and enables search all switch when search bar options are disabled/enabled --- .../slimlauncher/ui/options/CustomizeSearchFieldFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt b/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt index 0464097b..23c6691f 100644 --- a/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt +++ b/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt @@ -67,6 +67,7 @@ class CustomizeSearchFieldFragment : BaseFragment() { private fun enableSearchBarOptions(enabled: Boolean) { customize_app_drawer_fragment_search_field_position.isEnabled = enabled customize_app_drawer_open_keyboard_switch.isEnabled = enabled + customize_app_drawer_search_all_switch.isEnabled = enabled } private fun setupSearchBarPositionOption() { From 8417f3685e3c23a3bf32f604e38c80f6fddd266f Mon Sep 17 00:00:00 2001 From: Joshua Kuestersteffen Date: Thu, 25 Jan 2024 11:44:54 -0600 Subject: [PATCH 2/2] fix imports --- .../slimlauncher/ui/options/CustomizeSearchFieldFragment.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt b/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt index 1bee5dc4..3060dbf3 100644 --- a/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt +++ b/app/src/main/java/com/sduduzog/slimlauncher/ui/options/CustomizeSearchFieldFragment.kt @@ -11,7 +11,6 @@ import com.sduduzog.slimlauncher.ui.dialogs.ChooseSearchBarPositionDialog import com.sduduzog.slimlauncher.utils.BaseFragment import com.sduduzog.slimlauncher.utils.createTitleAndSubtitleText import dagger.hilt.android.AndroidEntryPoint -import kotlinx.android.synthetic.main.customize_app_drawer_fragment_search_field_options.customize_app_drawer_search_all_switch import javax.inject.Inject @AndroidEntryPoint @@ -73,7 +72,7 @@ class CustomizeSearchFieldFragment : BaseFragment() { ) { options.customizeAppDrawerFragmentSearchFieldPosition.isEnabled = enabled options.customizeAppDrawerOpenKeyboardSwitch.isEnabled = enabled - options.customize_app_drawer_search_all_switch.isEnabled = enabled + options.customizeAppDrawerSearchAllSwitch.isEnabled = enabled } private fun setupSearchBarPositionOption(