am 0fe45eac: Merge "Optimize KeybaordView.invalidateAllKeys a bit"

* commit '0fe45eac184ca1165867fd0763258d1b5cacb106':
  Optimize KeybaordView.invalidateAllKeys a bit
main
Tadashi G. Takaoka 2011-12-26 06:52:24 -08:00 committed by Android Git Automerger
commit 841ccf4a5a
1 changed files with 1 additions and 0 deletions

View File

@ -944,6 +944,7 @@ public class KeyboardView extends View implements PointerTracker.DrawingProxy {
public void invalidateAllKeys() { public void invalidateAllKeys() {
mDirtyRect.union(0, 0, getWidth(), getHeight()); mDirtyRect.union(0, 0, getWidth(), getHeight());
mBufferNeedsUpdate = true; mBufferNeedsUpdate = true;
mInvalidatedKey = null;
invalidate(); invalidate();
} }