summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Svet Ganov <svetoslavganov@google.com> 2014-10-14 08:53:33 -0700
committer Svet Ganov <svetoslavganov@google.com> 2014-10-14 08:53:37 -0700
commit9e1c67e861302f0df55859c422000b437cef2027 (patch)
treedf56016c009cbf80253aa24eea7284be46e8d7ec /libs/androidfw/misc.cpp
parente78aa53123df02a021cf20f2d19af8d07e890058 (diff)
Optimize text rendering in accessibility mode.
In accessibility mode when iterating over the text of a TextView we use the selection to keep track of the current position. Consequentally, if the text of a TextView does not support selection we change the text to Spannable. Doing that has performance cost. While we need selection support before we used to convert the text to Spannable even if we do not need to. Now this transformation happens only when the user decides to traverse the text which is very rare as opposed to doing this for every TextView. bug:17491082 Change-Id: Id7e82e01034e439b5d34133b9350a4efc4d19d4a
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions