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
197a2d32
Commit
197a2d32
authored
11 years ago
by
Jean Chalard
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "[PB1] Cleanup"
parents
b71e435e
41f505dc
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/dictionarypack/WordListPreference.java
+2
-9
2 additions, 9 deletions
...ndroid/inputmethod/dictionarypack/WordListPreference.java
with
2 additions
and
9 deletions
java/src/com/android/inputmethod/dictionarypack/WordListPreference.java
+
2
−
9
View file @
197a2d32
...
...
@@ -16,10 +16,9 @@
package
com.android.inputmethod.dictionarypack
;
import
android.app.Dialog
;
import
android.content.Context
;
import
android.content.SharedPreferences
;
import
android.preference.
Dialog
Preference
;
import
android.preference.Preference
;
import
android.util.Log
;
import
android.view.View
;
import
android.view.ViewGroup
;
...
...
@@ -38,7 +37,7 @@ import java.util.Locale;
* pack. Upon being pressed, it displays a menu to allow the user to install, disable,
* enable or delete it as appropriate for the current state of the word list.
*/
public
final
class
WordListPreference
extends
Dialog
Preference
{
public
final
class
WordListPreference
extends
Preference
{
static
final
private
String
TAG
=
WordListPreference
.
class
.
getSimpleName
();
// What to display in the "status" field when we receive unknown data as a status from
...
...
@@ -93,12 +92,6 @@ public final class WordListPreference extends DialogPreference {
if
(
status
==
mStatus
)
return
;
mStatus
=
status
;
setSummary
(
getSummary
(
status
));
// If we are currently displaying the dialog, we should update it, or at least
// dismiss it.
final
Dialog
dialog
=
getDialog
();
if
(
null
!=
dialog
)
{
dialog
.
dismiss
();
}
}
private
String
getSummary
(
final
int
status
)
{
...
...
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