mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: IntPref builder
This commit is contained in:
parent
4257dc6849
commit
372a3285d9
@ -30,6 +30,11 @@ fun PrefsBuilder(
|
|||||||
index = index,
|
index = index,
|
||||||
groupSize = size,
|
groupSize = size,
|
||||||
) { onDialogPref(prefKey) }
|
) { onDialogPref(prefKey) }
|
||||||
|
prefKey.default is Preferences.Value.IntValue -> IntPreference(
|
||||||
|
prefKey = prefKey as Preferences.Key<Int>,
|
||||||
|
index = index,
|
||||||
|
groupSize = size,
|
||||||
|
) { onDialogPref(prefKey) }
|
||||||
prefKey.default.value is Preferences.Enumeration<*> -> EnumPreference(
|
prefKey.default.value is Preferences.Enumeration<*> -> EnumPreference(
|
||||||
prefKey = prefKey as Preferences.Key<Preferences.Enumeration<*>>,
|
prefKey = prefKey as Preferences.Key<Preferences.Enumeration<*>>,
|
||||||
index = index,
|
index = index,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user