mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +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" -> {
|
"searchEnabled" -> {
|
||||||
uiUtils.setSearchVisibility(searchView, binding.searchLayout, binding.searchReplacement)
|
uiUtils.setSearchVisibility(searchView, binding.searchLayout, binding.searchReplacement)
|
||||||
uiUtils.setWebSearchVisibility(internetSearch)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
"contactsEnabled" -> {
|
"contactsEnabled" -> {
|
||||||
|
|
@ -579,10 +578,6 @@ class MainActivity : AppCompatActivity(), SharedPreferences.OnSharedPreferenceCh
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
"webSearchEnabled" -> {
|
|
||||||
uiUtils.setWebSearchVisibility(internetSearch)
|
|
||||||
}
|
|
||||||
|
|
||||||
"clockAlignment" -> {
|
"clockAlignment" -> {
|
||||||
uiUtils.setClockAlignment(clock, dateText)
|
uiUtils.setClockAlignment(clock, dateText)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ class SharedPreferenceManager (private val context: Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun isWebSearchEnabled(): Boolean {
|
fun isWebSearchEnabled(): Boolean {
|
||||||
return preferences.getBoolean("webSearchEnabled", false) && isSearchEnabled()
|
return preferences.getBoolean("webSearchEnabled", false) && isSearchEnabled() && !isAutoLaunchEnabled()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hidden Apps
|
// Hidden Apps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue