Add: IntPref builder

This commit is contained in:
machiav3lli 2022-09-17 21:25:29 +02:00
parent 4257dc6849
commit 372a3285d9

View File

@ -30,6 +30,11 @@ fun PrefsBuilder(
index = index,
groupSize = size,
) { 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 = prefKey as Preferences.Key<Preferences.Enumeration<*>>,
index = index,