Fixed
Status Update
Comments
se...@google.com <se...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
se...@google.com <se...@google.com>
ap...@google.com <ap...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
- Jetpack Compose component used: TextLayoutResult.getLineForOffset
- Android Studio Build: #AI-212.5712.43.2112.8609683
- Kotlin version: 1.6.21
- Devices/Android versions reproduced on: Pixel 2 API 28
- Keyboard (i.e. Gboard, Samsung, etc): Gboard
Documentation for getLineForOffset says
* If you ask for a position before 0, you get 0; if you ask for a position
* beyond the end of the text, you get the last line.
Implementation calls
requireIndexInRangeInclusiveEnd(offset)
and throws an Exception if the offset is out of bounds.