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
c43ff6f6
Commit
c43ff6f6
authored
12 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Remove gesture typing settings when disabled by configuration
Bug: 7506408 Change-Id: I4de53ace170d5ddc9779f42ac344c4190c80a019
parent
0b2aa7f6
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/Settings.java
+4
-10
4 additions, 10 deletions
java/src/com/android/inputmethod/latin/Settings.java
with
4 additions
and
10 deletions
java/src/com/android/inputmethod/latin/Settings.java
+
4
−
10
View file @
c43ff6f6
...
...
@@ -68,6 +68,7 @@ public final class Settings extends InputMethodSettingsFragment
public
static
final
String
PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY
=
"pref_key_preview_popup_dismiss_delay"
;
public
static
final
String
PREF_BIGRAM_PREDICTIONS
=
"next_word_prediction"
;
public
static
final
String
PREF_GESTURE_SETTINGS
=
"gesture_typing_settings"
;
public
static
final
String
PREF_GESTURE_INPUT
=
"gesture_input"
;
public
static
final
String
PREF_VIBRATION_DURATION_SETTINGS
=
"pref_vibration_duration_settings"
;
...
...
@@ -136,6 +137,8 @@ public final class Settings extends InputMethodSettingsFragment
(
PreferenceGroup
)
findPreference
(
PREF_GENERAL_SETTINGS
);
final
PreferenceGroup
textCorrectionGroup
=
(
PreferenceGroup
)
findPreference
(
PREF_CORRECTION_SETTINGS
);
final
PreferenceGroup
gestureTypingSettings
=
(
PreferenceGroup
)
findPreference
(
PREF_GESTURE_SETTINGS
);
final
PreferenceGroup
miscSettings
=
(
PreferenceGroup
)
findPreference
(
PREF_MISC_SETTINGS
);
...
...
@@ -206,17 +209,8 @@ public final class Settings extends InputMethodSettingsFragment
final
boolean
gestureInputEnabledByBuildConfig
=
res
.
getBoolean
(
R
.
bool
.
config_gesture_input_enabled_by_build_config
);
final
Preference
gesturePreviewTrail
=
findPreference
(
PREF_GESTURE_PREVIEW_TRAIL
);
final
Preference
gestureFloatingPreviewText
=
findPreference
(
PREF_GESTURE_FLOATING_PREVIEW_TEXT
);
if
(!
gestureInputEnabledByBuildConfig
)
{
miscSettings
.
removePreference
(
findPreference
(
PREF_GESTURE_INPUT
));
miscSettings
.
removePreference
(
gesturePreviewTrail
);
miscSettings
.
removePreference
(
gestureFloatingPreviewText
);
}
else
{
final
boolean
gestureInputEnabledByUser
=
prefs
.
getBoolean
(
PREF_GESTURE_INPUT
,
true
);
setPreferenceEnabled
(
gesturePreviewTrail
,
gestureInputEnabledByUser
);
setPreferenceEnabled
(
gestureFloatingPreviewText
,
gestureInputEnabledByUser
);
getPreferenceScreen
().
removePreference
(
gestureTypingSettings
);
}
mKeypressVibrationDurationSettingsPref
=
...
...
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