OSDN Git Service

Do not compute outside given range in TextLine
authorSeigo Nonaka <nona@google.com>
Mon, 16 Sep 2019 21:49:49 +0000 (14:49 -0700)
committerVasyl Gello <vasek.gello@gmail.com>
Sun, 8 Dec 2019 15:21:19 +0000 (15:21 +0000)
commit434f2bce706b209a0f6d8c45a0be13891abe18e9
tree6f5b648f8eff8db1bdf1e59e53cda188dce188d0
parenta634fae44691ac0ecf69ef1948657d0ed7b4b0dd
Do not compute outside given range in TextLine

This is second attempt of I646851973b3816bf9ba32dfe26748c0345a5a081
which breaks various layout test on application.
The empty string must be also handled by the TextLine since it
retrieves the default line height from the empty string.

Bug: 140632678
Test: StaticLayoutTest
Test: Manually done
Change-Id: I7089ed9b711dddd7de2b27c9c2fa0fb4cb53a735
core/java/android/text/TextLine.java