add generic reorder dialog and prelimiary toolbar pref screen

This commit is contained in:
Helium314 2025-01-28 16:14:42 +01:00
parent d61963453f
commit ce37888985
9 changed files with 203 additions and 14 deletions

View file

@ -9,6 +9,7 @@ import androidx.compose.runtime.Composable
import helium314.keyboard.settings.screens.createAboutPrefs
import helium314.keyboard.settings.screens.createCorrectionPrefs
import helium314.keyboard.settings.screens.createPreferencesPrefs
import helium314.keyboard.settings.screens.createToolbarPrefs
class AllPrefs(context: Context) {
private val list = createPrefDefs(context)
@ -51,7 +52,7 @@ class PrefDef(
}
private fun createPrefDefs(context: Context) = createAboutPrefs(context) +
createCorrectionPrefs(context) + createPreferencesPrefs(context)
createCorrectionPrefs(context) + createPreferencesPrefs(context) + createToolbarPrefs(context)
// todo: move somewhere else
fun Context.getActivity(): ComponentActivity? {