Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad4ddf61 authored by Josh's avatar Josh
Browse files

Added Auto Hyphenation to shortcut categories panel

When words don't fit into one line in other locales, they will now be
hyphenated properly.

Test: Manual - ensure proper hyphenation of strings in Polish, German, on Shortcut
helper.
Fix: 387305055
Flag: com.android.systemui.keyboard_shortcut_helper_shortcut_customizer

Change-Id: I97b1a6ad050817129f69165b78c3469d84159835
parent 312ecf91
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ import androidx.compose.ui.semantics.role
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.style.Hyphens
import androidx.compose.ui.text.withStyle
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
@@ -967,7 +968,7 @@ private fun CategoryItemTwoPane(
                Text(
                    fontSize = 18.sp,
                    color = colors.textColor(selected).value,
                    style = MaterialTheme.typography.titleSmall,
                    style = MaterialTheme.typography.titleSmall.copy(hyphens = Hyphens.Auto),
                    text = label,
                )
            }