summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author czq <czq@google.com> 2023-05-29 14:40:10 +0800
committer czq <czq@google.com> 2023-05-29 15:10:27 +0800
commitc52cdb5cd6d16f7f52100151ba996042c4a6112e (patch)
tree0f04306313355f47d886cbdbd2f12f5aaefe0275 /libs/androidfw/FileStream.cpp
parente4fb3654e7a274f33a6ba307c252f1e8efc5f5b7 (diff)
Fix TextAppearanceInfo#getTextColor is wrong when there is a hint text
When there is a hint text, the text color is set to hint color in TextView. While what the input method really want is the normal text color rather than hint color. We can't replace "textPaint.getColor" with "textView.getCurrentTextColor()" directly, because we need to retrive color from the textPaint we specially constructed above when there is a spannable text that overrides the text color by spans. Bug: 284088242 Test: atest android.view.inputmethod.TextAppearanceInfoTest#testCreateFromTextView_withHintText Change-Id: Ib11173a18ddd8c1cac7be1340c65daf6f2ff804a
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions