diff --git a/README.md b/README.md index 8be07ee..091b6de 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ The main search screen remains usable as long as at least one indexed dictionary ## Tech Stack - Kotlin 2.5.0 -- Jetpack Compose 1.13 (BOM 2026.11.01) +- Jetpack Compose 1.13.1 (BOM 2026.12.00) - Material 3 1.5.0 - Coroutines and Flow 1.11.0 - DataStore Preferences 1.3.0 diff --git a/app/src/main/java/com/example/research/ui/article/ArticleTextWarmUp.kt b/app/src/main/java/com/example/research/ui/article/ArticleTextWarmUp.kt index 0ce08ff..0e8d04d 100644 --- a/app/src/main/java/com/example/research/ui/article/ArticleTextWarmUp.kt +++ b/app/src/main/java/com/example/research/ui/article/ArticleTextWarmUp.kt @@ -3,6 +3,7 @@ package com.example.research.ui.article import android.content.Context import androidx.compose.ui.text.TextMeasurer import androidx.compose.ui.text.font.createFontFamilyResolver +import androidx.compose.ui.text.intl.LocaleList import androidx.compose.ui.unit.Constraints import androidx.compose.ui.unit.Density import androidx.compose.ui.unit.LayoutDirection @@ -26,6 +27,11 @@ object ArticleTextWarmUp { defaultFontFamilyResolver = createFontFamilyResolver(context), defaultDensity = density, defaultLayoutDirection = LayoutDirection.Ltr, + defaultLocaleList = LocaleList( + List(context.resources.configuration.locales.size()) { index -> + androidx.compose.ui.text.intl.Locale(context.resources.configuration.locales[index].toLanguageTag()) + }, + ), cacheSize = 0, ) val widthPx = with(density) { WARM_UP_WIDTH.toPx().toInt() } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0574dc5..f209450 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,8 +4,8 @@ activity_compose = "1.13.0" agp = "9.5.3" baselineprofile = "1.5.0" benchmark_macro = "1.5.0" -compose_bom = "2026.11.01" -compose_runtime = "1.13.0" +compose_bom = "2026.12.00" +compose_runtime = "1.13.1" core = "1.19.1" datastore_preferences = "1.3.0" documentfile = "1.1.0"