summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tony Wu <Tony_Wu@acer.com.tw> 2010-09-13 19:54:00 +0800
committer Tony Wu <Tony_Wu@acer.com.tw> 2010-09-13 19:54:53 +0800
commit26edf20a0b9516f6021521bc8edd2d30c03fc2ad (patch)
tree309cec571f641fcfca10728d879118e1fd60e23d
parent15f0a79a81fd18211603587bcd46eee0e37ced4d (diff)
Fix if ACTION_DOWN and lost focus time too close, it will become long press.
It will become long press because CheckForTap is still posted in background. So remove the callback when lose focus, or it will become long press event. Change-Id: I4f98a6fc077d256edbe555464095b2b81e75dd41
-rw-r--r--core/java/android/view/View.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 11e5ad138807..30aebc9fce75 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -3808,6 +3808,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
imm.focusOut(this);
}
removeLongPressCallback();
+ removeTapCallback();
onFocusLost();
} else if (imm != null && (mPrivateFlags & FOCUSED) != 0) {
imm.focusIn(this);