mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-04 17:37:25 +00:00
Fixed an issue with disabled search showing up after renaming an app, adjusted text sizes and added a bigger shortcut spacing option.
This commit is contained in:
parent
d0147bf599
commit
b17c2f1fd9
4 changed files with 21 additions and 8 deletions
|
|
@ -118,7 +118,14 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
|||
|
||||
val app = Triple(appActivity!!, userHandle, workProfile)
|
||||
|
||||
searchView.visibility = View.INVISIBLE
|
||||
val searchEnabled = sharedPreferenceManager.isSearchEnabled()
|
||||
|
||||
if (searchEnabled) {
|
||||
searchView.visibility = View.INVISIBLE
|
||||
} else {
|
||||
searchView.visibility = View.GONE
|
||||
}
|
||||
|
||||
editText.requestFocus()
|
||||
|
||||
// Open keyboard
|
||||
|
|
@ -137,7 +144,11 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
|||
|
||||
animations.fadeViewOut(editLayout)
|
||||
animations.fadeViewIn(textView)
|
||||
searchView.visibility = View.VISIBLE
|
||||
if (searchEnabled) {
|
||||
searchView.visibility = View.VISIBLE
|
||||
} else {
|
||||
searchView.visibility = View.GONE
|
||||
}
|
||||
activity.enableAppMenuScroll()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -323,12 +323,12 @@ class UIUtils(private val context: Context) {
|
|||
regionText: TextView? = null
|
||||
) {
|
||||
val size = sharedPreferenceManager.getAppSize()
|
||||
setTextSize(textView, size, 21F, 24F, 27F, 30F, 33F, 36F)
|
||||
setTextSize(textView, size, 20F, 24F, 28F, 32F, 36F, 40F)
|
||||
if (editText != null) {
|
||||
setTextSize(editText, size, 21F, 24F, 27F, 30F, 33F, 36F)
|
||||
setTextSize(editText, size, 20F, 24F, 28F, 32F, 36F, 40F)
|
||||
}
|
||||
if (regionText != null) {
|
||||
setTextSize(regionText, size, 11F, 14F, 17F, 20F, 23F, 26F)
|
||||
setTextSize(regionText, size, 10F, 14F, 18F, 22F, 26F, 30F)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@
|
|||
</string-array>
|
||||
|
||||
<string-array name="shortcut_spacing_options">
|
||||
<item>Tiny</item>
|
||||
<item>Small</item>
|
||||
<item>Medium</item>
|
||||
<item>Large</item>
|
||||
|
|
@ -109,10 +110,11 @@
|
|||
<string-array name="shortcut_spacing_values">
|
||||
<item>0.06</item>
|
||||
<item>0.09</item>
|
||||
<item>0.12</item>
|
||||
<item>0.15</item>
|
||||
<item>0.11</item>
|
||||
<item>0.14</item>
|
||||
<item>0.18</item>
|
||||
<item>0.21</item>
|
||||
<item>0.56</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="app_spacing_options">
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@
|
|||
<ListPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:defaultValue="0.09"
|
||||
app:defaultValue="0.11"
|
||||
app:entries="@array/shortcut_spacing_options"
|
||||
app:entryValues="@array/shortcut_spacing_values"
|
||||
app:key="shortcutWeight"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue