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
c60a846e
Commit
c60a846e
authored
12 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Fix NPE in Settings.updateCustomInputStylesSummary
Change-Id: I7822adf407046098f97bf60da9382910c0a40209
parent
1e1235fe
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/AdditionalSubtype.java
+2
-1
2 additions, 1 deletion
.../src/com/android/inputmethod/latin/AdditionalSubtype.java
with
2 additions
and
1 deletion
java/src/com/android/inputmethod/latin/AdditionalSubtype.java
+
2
−
1
View file @
c60a846e
...
@@ -28,6 +28,7 @@ import android.view.inputmethod.InputMethodSubtype;
...
@@ -28,6 +28,7 @@ import android.view.inputmethod.InputMethodSubtype;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
public
class
AdditionalSubtype
{
public
class
AdditionalSubtype
{
private
static
final
InputMethodSubtype
EMPTY_SUBTYPE_ARRAY
=
new
InputMethodSubtype
[
0
];
private
AdditionalSubtype
()
{
private
AdditionalSubtype
()
{
// This utility class is not publicly instantiable.
// This utility class is not publicly instantiable.
...
@@ -86,7 +87,7 @@ public class AdditionalSubtype {
...
@@ -86,7 +87,7 @@ public class AdditionalSubtype {
public
static
InputMethodSubtype
[]
createAdditionalSubtypesArray
(
String
prefSubtypes
)
{
public
static
InputMethodSubtype
[]
createAdditionalSubtypesArray
(
String
prefSubtypes
)
{
if
(
TextUtils
.
isEmpty
(
prefSubtypes
))
{
if
(
TextUtils
.
isEmpty
(
prefSubtypes
))
{
return
null
;
return
EMPTY_SUBTYPE_ARRAY
;
}
}
final
String
[]
prefSubtypeArray
=
prefSubtypes
.
split
(
PREF_SUBTYPE_SEPARATOR
);
final
String
[]
prefSubtypeArray
=
prefSubtypes
.
split
(
PREF_SUBTYPE_SEPARATOR
);
final
ArrayList
<
InputMethodSubtype
>
subtypesList
=
final
ArrayList
<
InputMethodSubtype
>
subtypesList
=
...
...
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