mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +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)
|
val app = Triple(appActivity!!, userHandle, workProfile)
|
||||||
|
|
||||||
|
val searchEnabled = sharedPreferenceManager.isSearchEnabled()
|
||||||
|
|
||||||
|
if (searchEnabled) {
|
||||||
searchView.visibility = View.INVISIBLE
|
searchView.visibility = View.INVISIBLE
|
||||||
|
} else {
|
||||||
|
searchView.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
editText.requestFocus()
|
editText.requestFocus()
|
||||||
|
|
||||||
// Open keyboard
|
// Open keyboard
|
||||||
|
|
@ -137,7 +144,11 @@ class AppActionMenu(private val activity: MainActivity, private val binding: Act
|
||||||
|
|
||||||
animations.fadeViewOut(editLayout)
|
animations.fadeViewOut(editLayout)
|
||||||
animations.fadeViewIn(textView)
|
animations.fadeViewIn(textView)
|
||||||
|
if (searchEnabled) {
|
||||||
searchView.visibility = View.VISIBLE
|
searchView.visibility = View.VISIBLE
|
||||||
|
} else {
|
||||||
|
searchView.visibility = View.GONE
|
||||||
|
}
|
||||||
activity.enableAppMenuScroll()
|
activity.enableAppMenuScroll()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -323,12 +323,12 @@ class UIUtils(private val context: Context) {
|
||||||
regionText: TextView? = null
|
regionText: TextView? = null
|
||||||
) {
|
) {
|
||||||
val size = sharedPreferenceManager.getAppSize()
|
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) {
|
if (editText != null) {
|
||||||
setTextSize(editText, size, 21F, 24F, 27F, 30F, 33F, 36F)
|
setTextSize(editText, size, 20F, 24F, 28F, 32F, 36F, 40F)
|
||||||
}
|
}
|
||||||
if (regionText != null) {
|
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>
|
||||||
|
|
||||||
<string-array name="shortcut_spacing_options">
|
<string-array name="shortcut_spacing_options">
|
||||||
|
<item>Tiny</item>
|
||||||
<item>Small</item>
|
<item>Small</item>
|
||||||
<item>Medium</item>
|
<item>Medium</item>
|
||||||
<item>Large</item>
|
<item>Large</item>
|
||||||
|
|
@ -109,10 +110,11 @@
|
||||||
<string-array name="shortcut_spacing_values">
|
<string-array name="shortcut_spacing_values">
|
||||||
<item>0.06</item>
|
<item>0.06</item>
|
||||||
<item>0.09</item>
|
<item>0.09</item>
|
||||||
<item>0.12</item>
|
<item>0.11</item>
|
||||||
<item>0.15</item>
|
<item>0.14</item>
|
||||||
<item>0.18</item>
|
<item>0.18</item>
|
||||||
<item>0.21</item>
|
<item>0.21</item>
|
||||||
|
<item>0.56</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="app_spacing_options">
|
<string-array name="app_spacing_options">
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
<ListPreference
|
<ListPreference
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:defaultValue="0.09"
|
app:defaultValue="0.11"
|
||||||
app:entries="@array/shortcut_spacing_options"
|
app:entries="@array/shortcut_spacing_options"
|
||||||
app:entryValues="@array/shortcut_spacing_values"
|
app:entryValues="@array/shortcut_spacing_values"
|
||||||
app:key="shortcutWeight"
|
app:key="shortcutWeight"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue