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
4598d120
Commit
4598d120
authored
13 years ago
by
satok
Browse files
Options
Downloads
Patches
Plain Diff
Internal cleanup before using InputMethodSettingsFragment
Change-Id: I7e3211feadf7b87b789040f6dcd6dda84a9d454a
parent
10912baf
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
+5
-2
5 additions, 2 deletions
java/src/com/android/inputmethod/latin/Settings.java
with
5 additions
and
2 deletions
java/src/com/android/inputmethod/latin/Settings.java
+
5
−
2
View file @
4598d120
...
@@ -18,6 +18,7 @@ package com.android.inputmethod.latin;
...
@@ -18,6 +18,7 @@ package com.android.inputmethod.latin;
import
com.android.inputmethod.compat.CompatUtils
;
import
com.android.inputmethod.compat.CompatUtils
;
import
com.android.inputmethod.compat.InputMethodManagerCompatWrapper
;
import
com.android.inputmethod.compat.InputMethodManagerCompatWrapper
;
import
com.android.inputmethod.compat.InputMethodServiceCompatWrapper
;
import
com.android.inputmethod.deprecated.VoiceProxy
;
import
com.android.inputmethod.deprecated.VoiceProxy
;
import
com.android.inputmethod.compat.VibratorCompatWrapper
;
import
com.android.inputmethod.compat.VibratorCompatWrapper
;
...
@@ -289,7 +290,6 @@ public class Settings extends PreferenceActivity
...
@@ -289,7 +290,6 @@ public class Settings extends PreferenceActivity
}
}
private
PreferenceScreen
mInputLanguageSelection
;
private
PreferenceScreen
mInputLanguageSelection
;
private
CheckBoxPreference
mQuickFixes
;
private
ListPreference
mVoicePreference
;
private
ListPreference
mVoicePreference
;
private
ListPreference
mSettingsKeyPreference
;
private
ListPreference
mSettingsKeyPreference
;
private
ListPreference
mShowCorrectionSuggestionsPreference
;
private
ListPreference
mShowCorrectionSuggestionsPreference
;
...
@@ -337,7 +337,6 @@ public class Settings extends PreferenceActivity
...
@@ -337,7 +337,6 @@ public class Settings extends PreferenceActivity
addPreferencesFromResource
(
R
.
xml
.
prefs
);
addPreferencesFromResource
(
R
.
xml
.
prefs
);
mInputLanguageSelection
=
(
PreferenceScreen
)
findPreference
(
PREF_SUBTYPES
);
mInputLanguageSelection
=
(
PreferenceScreen
)
findPreference
(
PREF_SUBTYPES
);
mInputLanguageSelection
.
setOnPreferenceClickListener
(
this
);
mInputLanguageSelection
.
setOnPreferenceClickListener
(
this
);
mQuickFixes
=
(
CheckBoxPreference
)
findPreference
(
PREF_QUICK_FIXES
);
mVoicePreference
=
(
ListPreference
)
findPreference
(
PREF_VOICE_SETTINGS_KEY
);
mVoicePreference
=
(
ListPreference
)
findPreference
(
PREF_VOICE_SETTINGS_KEY
);
mSettingsKeyPreference
=
(
ListPreference
)
findPreference
(
PREF_SETTINGS_KEY
);
mSettingsKeyPreference
=
(
ListPreference
)
findPreference
(
PREF_SETTINGS_KEY
);
mShowCorrectionSuggestionsPreference
=
mShowCorrectionSuggestionsPreference
=
...
@@ -384,6 +383,10 @@ public class Settings extends PreferenceActivity
...
@@ -384,6 +383,10 @@ public class Settings extends PreferenceActivity
generalSettings
.
removePreference
(
findPreference
(
PREF_VIBRATE_ON
));
generalSettings
.
removePreference
(
findPreference
(
PREF_VIBRATE_ON
));
}
}
if
(
InputMethodServiceCompatWrapper
.
CAN_HANDLE_ON_CURRENT_INPUT_METHOD_SUBTYPE_CHANGED
)
{
generalSettings
.
removePreference
(
findPreference
(
PREF_SUBTYPES
));
}
final
boolean
showPopupOption
=
res
.
getBoolean
(
final
boolean
showPopupOption
=
res
.
getBoolean
(
R
.
bool
.
config_enable_show_popup_on_keypress_option
);
R
.
bool
.
config_enable_show_popup_on_keypress_option
);
if
(!
showPopupOption
)
{
if
(!
showPopupOption
)
{
...
...
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