diff options
author | 2014-05-14 10:05:41 +0000 | |
---|---|---|
committer | 2014-05-14 10:05:41 +0000 | |
commit | e9f992ff2699939222d7f03c228bdb2bd7cb67d8 (patch) | |
tree | dd6373e836b390241945acbcde8b4d8ac79e63b8 /java/src | |
parent | 8e38607e5c3416a27b13fccaf29b525071cfeb84 (diff) | |
parent | 71f4c6b8eacb210fceb719a0f293d14f359ba4f1 (diff) | |
download | latinime-e9f992ff2699939222d7f03c228bdb2bd7cb67d8.tar.gz latinime-e9f992ff2699939222d7f03c228bdb2bd7cb67d8.tar.xz latinime-e9f992ff2699939222d7f03c228bdb2bd7cb67d8.zip |
am 71f4c6b8: Merge "Fix NPE that happens only in some unit tests"
* commit '71f4c6b8eacb210fceb719a0f293d14f359ba4f1':
Fix NPE that happens only in some unit tests
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java b/java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java index a02ff1175..55e8071c1 100644 --- a/java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java +++ b/java/src/com/android/inputmethod/keyboard/EmojiPalettesView.java @@ -153,7 +153,9 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange textView.setText(mEmojiCategory.getCategoryLabel(categoryId)); textView.setTypeface(Typeface.DEFAULT_BOLD); textView.setContentDescription(mEmojiCategory.getAccessibilityDescription(categoryId)); - textView.setTextColor(mTabLabelColor); + if (mTabLabelColor != null) { + textView.setTextColor(mTabLabelColor); + } tspec.setIndicator(textView); } host.addTab(tspec); |