Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 268bf2cd authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix NPE that happens only in some unit tests

Bug: 14922410
Change-Id: Ica801e102d302e9faa7c24721b37634f1e812af3
parent 83da2642
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -153,7 +153,9 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
            textView.setText(mEmojiCategory.getCategoryLabel(categoryId));
            textView.setText(mEmojiCategory.getCategoryLabel(categoryId));
            textView.setTypeface(Typeface.DEFAULT_BOLD);
            textView.setTypeface(Typeface.DEFAULT_BOLD);
            textView.setContentDescription(mEmojiCategory.getAccessibilityDescription(categoryId));
            textView.setContentDescription(mEmojiCategory.getAccessibilityDescription(categoryId));
            if (mTabLabelColor != null) {
                textView.setTextColor(mTabLabelColor);
                textView.setTextColor(mTabLabelColor);
            }
            tspec.setIndicator(textView);
            tspec.setIndicator(textView);
        }
        }
        host.addTab(tspec);
        host.addTab(tspec);