mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +00:00
Further improvements to web search button
This commit is contained in:
parent
5c21bdcf26
commit
66c83957a0
2 changed files with 1 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue