LatinIME/java
Jean Chalard a7d0ab80a0 Fix an off-by-one error.
These variables were meant to represent the (x,y) coordinate of the
last pixel of the grid, to avoid going one pixel too far. But the last
pixel of the grid, of course, has coord (width - 1, height - 1).

This bug only ever happens in a rare case because to reproduce,
it needs the right (resp. bottom) coordinate of the rightmost
(resp. bottommost) plus the threshold plus half the grid width
(resp. height) to be exactly the number of pixels of the grid,
which is pretty unlikely... unless there are more tiles in the
grid than pixels on the screen, in which case the grid width is
1 and this becomes likely.

This fixes the fencepost error and renames the variables to
clarify their meaning.

Bug: 10537485
Change-Id: Iecfe2c0f29ee17776ee2cceaa4b1db722276b1f3
2013-09-19 13:43:09 +09:00
..
res Set EmojiCapable 2013-09-18 17:29:23 +09:00
src/com/android/inputmethod Fix an off-by-one error. 2013-09-19 13:43:09 +09:00
Android.mk Just a cosmetic cleanup 2012-07-28 21:24:29 +09:00
AndroidManifest.xml Move settings related classes to "settings" 2013-07-22 16:35:44 +09:00
MODULE_LICENSE_APACHE2
NOTICE Add notice for Lexiteria dictionaries. 2012-10-05 11:08:31 +09:00
proguard.flags Follow-up to I97df1c3d4076fe97657ebc3b086cccd2b97e9a9a 2013-06-26 18:09:34 +09:00