am 040b442f: am 18e21d58: Remove closing method from KeyboardView

* commit '040b442f3cd4c0a212ef7e2ec0c55541b67ec7ce':
  Remove closing method from KeyboardView
main
Tadashi G. Takaoka 2013-02-28 14:42:27 -08:00 committed by Android Git Automerger
commit 053ef607fb
3 changed files with 0 additions and 9 deletions

View File

@ -635,15 +635,9 @@ public class KeyboardView extends View {
invalidate(x, y, x + key.mWidth, y + key.mHeight); invalidate(x, y, x + key.mWidth, y + key.mHeight);
} }
// TODO: Remove this method.
public void closing() {
mInvalidateAllKeys = true;
}
@Override @Override
protected void onDetachedFromWindow() { protected void onDetachedFromWindow() {
super.onDetachedFromWindow(); super.onDetachedFromWindow();
closing();
freeOffscreenBuffer(); freeOffscreenBuffer();
} }
} }

View File

@ -1236,13 +1236,11 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
mDrawingHandler.cancelAllMessages(); mDrawingHandler.cancelAllMessages();
} }
@Override
public void closing() { public void closing() {
dismissAllKeyPreviews(); dismissAllKeyPreviews();
cancelAllMessages(); cancelAllMessages();
onDismissMoreKeysPanel(); onDismissMoreKeysPanel();
mMoreKeysKeyboardCache.clear(); mMoreKeysKeyboardCache.clear();
super.closing();
} }
/** /**

View File

@ -174,7 +174,6 @@ public class MoreKeysKeyboardView extends KeyboardView implements MoreKeysPanel
@Override @Override
public boolean dismissMoreKeysPanel() { public boolean dismissMoreKeysPanel() {
super.closing();
if (mController == null) return false; if (mController == null) return false;
return mController.onDismissMoreKeysPanel(); return mController.onDismissMoreKeysPanel();
} }