Skip to content

Commit

Permalink
Fix a "Keyboard forever missing" bug.
Browse files Browse the repository at this point in the history
The bug is: when start a new Activity and return while the EditText is on focus and the keyboard is shown with a clear button, the keyboard will be missing and won't appear again.
  • Loading branch information
rengwuxian committed Jun 4, 2015
1 parent 346b6dc commit f328b62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1469,8 +1469,8 @@ public boolean onTouchEvent(MotionEvent event) {
if (insideClearButton(event)) {
clearButtonTouched = true;
clearButtonClicking = true;
return true;
}
return true;
case MotionEvent.ACTION_MOVE:
if (clearButtonClicking && !insideClearButton(event)) {
clearButtonClicking = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1469,8 +1469,8 @@ public boolean onTouchEvent(MotionEvent event) {
if (insideClearButton(event)) {
clearButtonTouched = true;
clearButtonClicking = true;
return true;
}
return true;
case MotionEvent.ACTION_MOVE:
if (clearButtonClicking && !insideClearButton(event)) {
clearButtonClicking = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1466,8 +1466,8 @@ public boolean onTouchEvent(MotionEvent event) {
if (insideClearButton(event)) {
clearButtonTouched = true;
clearButtonClicking = true;
return true;
}
return true;
case MotionEvent.ACTION_MOVE:
if (clearButtonClicking && !insideClearButton(event)) {
clearButtonClicking = false;
Expand Down

0 comments on commit f328b62

Please sign in to comment.