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
a396ca5a
Commit
a396ca5a
authored
10 years ago
by
Jean Chalard
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
38fd3a30
: am
7eade776
: am
7aa47cb3
: Only do double-space-period on real text fields.
* commit '
38fd3a30
': Only do double-space-period on real text fields.
parents
c285fd7b
38fd3a30
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/InputAttributes.java
+11
-0
11 additions, 0 deletions
java/src/com/android/inputmethod/latin/InputAttributes.java
java/src/com/android/inputmethod/latin/settings/SettingsValues.java
+2
-1
2 additions, 1 deletion
...om/android/inputmethod/latin/settings/SettingsValues.java
with
13 additions
and
1 deletion
java/src/com/android/inputmethod/latin/InputAttributes.java
+
11
−
0
View file @
a396ca5a
...
@@ -42,6 +42,7 @@ public final class InputAttributes {
...
@@ -42,6 +42,7 @@ public final class InputAttributes {
final
public
boolean
mApplicationSpecifiedCompletionOn
;
final
public
boolean
mApplicationSpecifiedCompletionOn
;
final
public
boolean
mShouldInsertSpacesAutomatically
;
final
public
boolean
mShouldInsertSpacesAutomatically
;
final
public
boolean
mShouldShowVoiceInputKey
;
final
public
boolean
mShouldShowVoiceInputKey
;
final
public
boolean
mIsGeneralTextInput
;
final
private
int
mInputType
;
final
private
int
mInputType
;
final
private
EditorInfo
mEditorInfo
;
final
private
EditorInfo
mEditorInfo
;
final
private
String
mPackageNameForPrivateImeOptions
;
final
private
String
mPackageNameForPrivateImeOptions
;
...
@@ -76,6 +77,7 @@ public final class InputAttributes {
...
@@ -76,6 +77,7 @@ public final class InputAttributes {
mApplicationSpecifiedCompletionOn
=
false
;
mApplicationSpecifiedCompletionOn
=
false
;
mShouldInsertSpacesAutomatically
=
false
;
mShouldInsertSpacesAutomatically
=
false
;
mShouldShowVoiceInputKey
=
false
;
mShouldShowVoiceInputKey
=
false
;
mIsGeneralTextInput
=
false
;
return
;
return
;
}
}
// inputClass == InputType.TYPE_CLASS_TEXT
// inputClass == InputType.TYPE_CLASS_TEXT
...
@@ -117,6 +119,15 @@ public final class InputAttributes {
...
@@ -117,6 +119,15 @@ public final class InputAttributes {
||
(!
flagAutoCorrect
&&
!
flagMultiLine
);
||
(!
flagAutoCorrect
&&
!
flagMultiLine
);
mApplicationSpecifiedCompletionOn
=
flagAutoComplete
&&
isFullscreenMode
;
mApplicationSpecifiedCompletionOn
=
flagAutoComplete
&&
isFullscreenMode
;
// If we come here, inputClass is always TYPE_CLASS_TEXT
mIsGeneralTextInput
=
InputType
.
TYPE_TEXT_VARIATION_EMAIL_ADDRESS
!=
variation
&&
InputType
.
TYPE_TEXT_VARIATION_PASSWORD
!=
variation
&&
InputType
.
TYPE_TEXT_VARIATION_PHONETIC
!=
variation
&&
InputType
.
TYPE_TEXT_VARIATION_URI
!=
variation
&&
InputType
.
TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
!=
variation
&&
InputType
.
TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS
!=
variation
&&
InputType
.
TYPE_TEXT_VARIATION_WEB_PASSWORD
!=
variation
;
}
}
public
boolean
isTypeNull
()
{
public
boolean
isTypeNull
()
{
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/settings/SettingsValues.java
+
2
−
1
View file @
a396ca5a
...
@@ -148,7 +148,8 @@ public final class SettingsValues {
...
@@ -148,7 +148,8 @@ public final class SettingsValues {
?
Settings
.
readShowsLanguageSwitchKey
(
prefs
)
:
true
/* forcibly */
;
?
Settings
.
readShowsLanguageSwitchKey
(
prefs
)
:
true
/* forcibly */
;
mUseContactsDict
=
prefs
.
getBoolean
(
Settings
.
PREF_KEY_USE_CONTACTS_DICT
,
true
);
mUseContactsDict
=
prefs
.
getBoolean
(
Settings
.
PREF_KEY_USE_CONTACTS_DICT
,
true
);
mUsePersonalizedDicts
=
prefs
.
getBoolean
(
Settings
.
PREF_KEY_USE_PERSONALIZED_DICTS
,
true
);
mUsePersonalizedDicts
=
prefs
.
getBoolean
(
Settings
.
PREF_KEY_USE_PERSONALIZED_DICTS
,
true
);
mUseDoubleSpacePeriod
=
prefs
.
getBoolean
(
Settings
.
PREF_KEY_USE_DOUBLE_SPACE_PERIOD
,
true
);
mUseDoubleSpacePeriod
=
prefs
.
getBoolean
(
Settings
.
PREF_KEY_USE_DOUBLE_SPACE_PERIOD
,
true
)
&&
inputAttributes
.
mIsGeneralTextInput
;
mBlockPotentiallyOffensive
=
Settings
.
readBlockPotentiallyOffensive
(
prefs
,
res
);
mBlockPotentiallyOffensive
=
Settings
.
readBlockPotentiallyOffensive
(
prefs
,
res
);
mAutoCorrectEnabled
=
Settings
.
readAutoCorrectEnabled
(
autoCorrectionThresholdRawValue
,
res
);
mAutoCorrectEnabled
=
Settings
.
readAutoCorrectEnabled
(
autoCorrectionThresholdRawValue
,
res
);
mBigramPredictionEnabled
=
readBigramPredictionEnabled
(
prefs
,
res
);
mBigramPredictionEnabled
=
readBigramPredictionEnabled
(
prefs
,
res
);
...
...
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