Status Update
Comments
st...@gmail.com <st...@gmail.com> #2
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
co...@google.com <co...@google.com>
ap...@google.com <ap...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
ma...@google.com <ma...@google.com>
st...@gmail.com <st...@gmail.com> #4
-
Second crash in the description is from a real device. Experienced it myself on two different Xiaomi phones, plus lots of crashes from users in the Google Play console.
-
Dynamic features are not used in the application.
As a wild guess, I have downgraded build tools from 31.0.0 to 30.0.3, compileSdk from 31 to 30, and moved all work with Language ID to the service in a separate process (just to be sure that crash can kill secondary process instead of main). This combination is in beta for 2 days by now and I don't see any SIGSEGV crashes.
pr...@google.com <pr...@google.com> #5
Hmm, I feel the crash might be something related to separate/secondary process.
I also changed compileSdk and targetSDK to 31 but still cannot repro this issue.
Description
Jetpack Compose version: (BOM)
2024.06.00
Material Library Version: have only tested with M3
Material Compose component used:
SingleChoiceSegmentedButtonRow
Android Studio Build:
Build #AI-241.18034.62.2411.12169540, built on August 1, 2024
Kotlin version:
2.0.0
Code Sample to Reproduce:
For large font scales, the
SegmentedButton
s in the sample above show text truncation (see attachments). To increase the range of font scales for which truncation is not needed, I would like to be able to reduce the horizontal padding forSegmentedButton
. However, that is not possible; 12dp of padding is hard-coded into the library-private ComposableSegmentedButtonContent
. So, to reduce padding with the current APIs, I would need to:SingleChoiceSegmentedButtonRowScope.SegmentedButton
, which requires that ISegmentedButtonContent
, which requires that IOutlinedSegmentedButtonTokens.LabelTextFont
andSegmentedButtonContentMeasurePolicy
, which requires that ISegmentedButton.IconSpacing
andMotionTokens.DurationMedium3
.It would be helpful if
SegmentedButton
's API allowed simpler editing (or removal) of the hard-coded minimum horizontal padding.Separately, it would be helpful in general if the Material libraries didn't make so many APIs internal/private, as doing so hinders our ability to make small edits to Material components while benefiting from future updates to the library code.
Thank you for reading and considering this!