Fix issue #2191572: Difficulties drawing window shade

The touch location filtering hacks had a little problem.

Change-Id: Ib57366169c87f83af1adcc8b6a00dadc01582339
This commit is contained in:
Dianne Hackborn
2009-10-19 11:24:39 -07:00
parent 007a429f09
commit dc95372cb5
2 changed files with 10 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ public class InputDevice {
// This is the last generated pointer data, ordered to match
// mPointerIds.
boolean mSkipLastPointers;
int mLastNumPointers = 0;
final int[] mLastData = new int[MotionEvent.NUM_SAMPLE_DATA * MAX_POINTERS];
@@ -511,6 +512,11 @@ public class InputDevice {
long curTimeNano, Display display, int orientation,
int metaState) {
if (mSkipLastPointers) {
mSkipLastPointers = false;
mLastNumPointers = 0;
}
if (mNextNumPointers <= 0 && mLastNumPointers <= 0) {
return null;
}