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
9ac6c906
Commit
9ac6c906
authored
11 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix test fails caused by I8bede13c87
Change-Id: I1e816bf7ea5fd46b39c2482bbcbfcdc16d5acc21
parent
c2e2b394
No related branches found
No related tags found
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
+12
-0
12 additions, 0 deletions
...id/inputmethod/latin/suggestions/SuggestionStripView.java
with
12 additions
and
0 deletions
java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+
12
−
0
View file @
9ac6c906
...
...
@@ -26,6 +26,7 @@ import android.view.View;
import
android.view.View.OnClickListener
;
import
android.view.View.OnLongClickListener
;
import
android.view.ViewGroup
;
import
android.view.ViewParent
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
...
...
@@ -189,10 +190,21 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
public
void
clear
()
{
mSuggestionsStrip
.
removeAllViews
();
removeAllDebugInfoViews
();
mStripVisibilityGroup
.
showSuggestionsStrip
();
dismissMoreSuggestionsPanel
();
}
private
void
removeAllDebugInfoViews
()
{
// The debug info views may be placed as children views of this {@link SuggestionStripView}.
for
(
final
View
debugInfoView
:
mDebugInfoViews
)
{
final
ViewParent
parent
=
debugInfoView
.
getParent
();
if
(
parent
instanceof
ViewGroup
)
{
((
ViewGroup
)
parent
).
removeView
(
debugInfoView
);
}
}
}
private
final
MoreSuggestionsListener
mMoreSuggestionsListener
=
new
MoreSuggestionsListener
()
{
@Override
public
void
onSuggestionSelected
(
final
int
index
,
final
SuggestedWordInfo
wordInfo
)
{
...
...
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