Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
a5cdd6f4
Commit
a5cdd6f4
authored
10 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix unnecessary touch event handling"
parents
c91166de
8ab46225
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+6
-0
6 additions, 0 deletions
...id/inputmethod/latin/suggestions/SuggestionStripView.java
with
6 additions
and
0 deletions
java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+
6
−
0
View file @
a5cdd6f4
...
...
@@ -400,6 +400,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if
(
mStripVisibilityGroup
.
isShowingImportantNoticeStrip
())
{
return
false
;
}
// Detecting sliding up finger to show {@link MoreSuggestionsView}.
if
(!
mMoreSuggestionsView
.
isShowingInParent
())
{
mLastX
=
(
int
)
me
.
getX
();
mLastY
=
(
int
)
me
.
getY
();
...
...
@@ -439,6 +440,11 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
@Override
public
boolean
onTouchEvent
(
final
MotionEvent
me
)
{
if
(!
mMoreSuggestionsView
.
isShowingInParent
())
{
// Ignore any touch event while more suggestions panel hasn't been shown.
// Detecting sliding up is done at {@link #onInterceptTouchEvent}.
return
true
;
}
// In the sliding input mode. {@link MotionEvent} should be forwarded to
// {@link MoreSuggestionsView}.
final
int
index
=
me
.
getActionIndex
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment