summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorClara Bayarri <clarabayarri@google.com>2015-08-12 19:46:47 +0100
committerClara Bayarri <clarabayarri@google.com>2015-08-12 21:03:28 +0100
commitf95ed10d9da55c25013200fb35af63f0dac65cb4 (patch)
tree3ad744cbb005d6719b56991891ea5e0f0dd369da /cmds
parentbf88205bef88f78ade5c6830e6203aa343387820 (diff)
downloadframeworks_base-f95ed10d9da55c25013200fb35af63f0dac65cb4.zip
frameworks_base-f95ed10d9da55c25013200fb35af63f0dac65cb4.tar.gz
frameworks_base-f95ed10d9da55c25013200fb35af63f0dac65cb4.tar.bz2
Fix Insertion ActionMode not showing on RTL languages
When long pressing on an empty Text field with the system language set to RTL, the "paste" popup was not showing up. The Floating Toolbar requires a content rect to determine where the text is and place itself close to it. In the case of an empty field, we create a "fake" content rect by taking the placement of the cursor +1 pixel to the right. In RTL languages, this +1 causes the content rect to be considered off the bounds of the view, as the cursor is aligned to the right, and hence the Floating Toolbar is hidden. After making the rect a 0 width rect, we ran into the issue that it was considered out of bounds due to the calculation ignoring rects that simply touch the edge of the view's bounds. BUG: 22540083 Change-Id: I29c79b701f586970b2611178233eff082b802ec1
Diffstat (limited to 'cmds')
0 files changed, 0 insertions, 0 deletions