OSDN Git Service

Fix for a Launcher crash.
authorStefan Li <stefan.li@sonyericsson.com>
Fri, 12 Nov 2010 14:53:41 +0000 (15:53 +0100)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Fri, 12 Nov 2010 14:53:41 +0000 (15:53 +0100)
commitbc423039676ed9d5255151489e27a054e8ed6899
tree0b479c731c3c3cce857c0bd3ce70e3646394abe9
parent35e79e32808456a7f5f21126ed2fa7badf8dc0bc
Fix for a Launcher crash.

A forced close will occur in Launcher homescreen if you
are holding the edge portion of the touch screen and slide
close or open the touch screen. This is caused by the
display changing configurations but the touch events are
passed through the framework. So the coordinates will be
wrong which causes a out of bounds exception.

Added a bounds check for the pointer index on ACTION_UP.

Change-Id: I67d7e428f55694969d43948c37b6acda2a5c6eb6
src/com/android/launcher2/Workspace.java