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
401fb908
Commit
401fb908
authored
11 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Make emoji separators
Bug: 11163495 Change-Id: I3247b8d1bbd3406b29a30a25aebd932c63431943
parent
6dac27ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/latin/LastComposedWord.java
+0
-6
0 additions, 6 deletions
java/src/com/android/inputmethod/latin/LastComposedWord.java
java/src/com/android/inputmethod/latin/LatinIME.java
+4
-3
4 additions, 3 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
4 additions
and
9 deletions
java/src/com/android/inputmethod/latin/LastComposedWord.java
+
0
−
6
View file @
401fb908
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
package
com.android.inputmethod.latin
;
package
com.android.inputmethod.latin
;
import
com.android.inputmethod.latin.utils.StringUtils
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
/**
/**
...
@@ -85,8 +83,4 @@ public final class LastComposedWord {
...
@@ -85,8 +83,4 @@ public final class LastComposedWord {
private
boolean
didCommitTypedWord
()
{
private
boolean
didCommitTypedWord
()
{
return
TextUtils
.
equals
(
mTypedWord
,
mCommittedWord
);
return
TextUtils
.
equals
(
mTypedWord
,
mCommittedWord
);
}
}
public
static
int
getSeparatorLength
(
final
String
separatorString
)
{
return
StringUtils
.
codePointCount
(
separatorString
);
}
}
}
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/LatinIME.java
+
4
−
3
View file @
401fb908
...
@@ -1712,7 +1712,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -1712,7 +1712,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mSpaceState
=
SPACE_STATE_NONE
;
mSpaceState
=
SPACE_STATE_NONE
;
final
boolean
didAutoCorrect
;
final
boolean
didAutoCorrect
;
final
SettingsValues
settingsValues
=
mSettings
.
getCurrent
();
final
SettingsValues
settingsValues
=
mSettings
.
getCurrent
();
if
(
settingsValues
.
isWordSeparator
(
primaryCode
))
{
if
(
settingsValues
.
isWordSeparator
(
primaryCode
)
||
Character
.
getType
(
primaryCode
)
==
Character
.
OTHER_SYMBOL
)
{
didAutoCorrect
=
handleSeparator
(
primaryCode
,
x
,
y
,
spaceState
);
didAutoCorrect
=
handleSeparator
(
primaryCode
,
x
,
y
,
spaceState
);
}
else
{
}
else
{
didAutoCorrect
=
false
;
didAutoCorrect
=
false
;
...
@@ -2979,8 +2980,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -2979,8 +2980,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final
String
originallyTypedWord
=
mLastComposedWord
.
mTypedWord
;
final
String
originallyTypedWord
=
mLastComposedWord
.
mTypedWord
;
final
String
committedWord
=
mLastComposedWord
.
mCommittedWord
;
final
String
committedWord
=
mLastComposedWord
.
mCommittedWord
;
final
int
cancelLength
=
committedWord
.
length
();
final
int
cancelLength
=
committedWord
.
length
();
final
int
separatorLength
=
LastComposedWord
.
getSeparatorLength
(
// We want java chars, not codepoints for the following.
mLastComposedWord
.
mSeparatorString
);
final
int
separatorLength
=
mLastComposedWord
.
mSeparatorString
.
length
(
);
// TODO: should we check our saved separator against the actual contents of the text view?
// TODO: should we check our saved separator against the actual contents of the text view?
final
int
deleteLength
=
cancelLength
+
separatorLength
;
final
int
deleteLength
=
cancelLength
+
separatorLength
;
if
(
DEBUG
)
{
if
(
DEBUG
)
{
...
...
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