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
5ab5807d
Commit
5ab5807d
authored
13 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Remove long-press-to-save feature from CandidateView
Bug: 5027059 Change-Id: I884a84e50e810c0c4a8255217b39ea24937c756b
parent
40f7efc1
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/CandidateView.java
+1
-20
1 addition, 20 deletions
java/src/com/android/inputmethod/latin/CandidateView.java
with
1 addition
and
20 deletions
java/src/com/android/inputmethod/latin/CandidateView.java
+
1
−
20
View file @
5ab5807d
...
...
@@ -38,7 +38,6 @@ import android.view.Gravity;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View.OnClickListener
;
import
android.view.View.OnLongClickListener
;
import
android.view.ViewGroup
;
import
android.widget.LinearLayout
;
import
android.widget.PopupWindow
;
...
...
@@ -51,7 +50,7 @@ import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
CandidateView
extends
LinearLayout
implements
OnClickListener
,
OnLongClickListener
{
public
class
CandidateView
extends
LinearLayout
implements
OnClickListener
{
public
interface
Listener
{
public
boolean
addWordToDictionary
(
String
word
);
...
...
@@ -323,8 +322,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
final
TextView
word
=
(
TextView
)
inflater
.
inflate
(
R
.
layout
.
candidate_word
,
null
);
word
.
setTag
(
i
);
word
.
setOnClickListener
(
this
);
if
(
i
==
0
)
word
.
setOnLongClickListener
(
this
);
mWords
.
add
(
word
);
mInfos
.
add
((
TextView
)
inflater
.
inflate
(
R
.
layout
.
candidate_info
,
null
));
mDividers
.
add
(
inflater
.
inflate
(
R
.
layout
.
candidate_divider
,
null
));
...
...
@@ -749,22 +746,6 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
}
}
@Override
public
boolean
onLongClick
(
View
view
)
{
final
Object
tag
=
view
.
getTag
();
if
(!(
tag
instanceof
Integer
))
return
true
;
final
int
index
=
(
Integer
)
tag
;
if
(
index
>=
mSuggestions
.
size
())
return
true
;
final
CharSequence
word
=
mSuggestions
.
getWord
(
index
);
if
(
word
.
length
()
<
2
)
return
false
;
addToDictionary
(
word
);
return
true
;
}
@Override
public
void
onClick
(
View
view
)
{
if
(
view
==
mWordToSave
)
{
...
...
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