Further improvements to web search button

This commit is contained in:
ottoptj 2024-11-20 02:50:49 +02:00
commit 66c83957a0
2 changed files with 1 additions and 6 deletions

View file

@ -568,7 +568,6 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
"searchEnabled" -> {
uiUtils.setSearchVisibility(searchView, binding.searchLayout, binding.searchReplacement)
uiUtils.setWebSearchVisibility(internetSearch)
}
"contactsEnabled" -> {
@ -579,10 +578,6 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
}
}
"webSearchEnabled" -> {
uiUtils.setWebSearchVisibility(internetSearch)
}
"clockAlignment" -> {
uiUtils.setClockAlignment(clock, dateText)
}

View file

@ -241,7 +241,7 @@ class SharedPreferenceManager (private val context: Context) {
}
fun isWebSearchEnabled(): Boolean {
return preferences.getBoolean("webSearchEnabled", false) && isSearchEnabled()
return preferences.getBoolean("webSearchEnabled", false) && isSearchEnabled() && !isAutoLaunchEnabled()
}
// Hidden Apps