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

Commit 60835872 authored by Chieu Nguyen's avatar Chieu Nguyen
Browse files

Set background color for emoji category tabs.

Bug: 19686516.
Change-Id: I519d09491ded4f5d85a5951afb48a9638b5fe652
parent b56f7d8c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -151,6 +151,9 @@ public final class EmojiPalettesView extends LinearLayout implements OnTabChange
        tspec.setContent(R.id.emoji_keyboard_dummy);
        final ImageView iconView = (ImageView)LayoutInflater.from(getContext()).inflate(
                R.layout.emoji_keyboard_tab_icon, null);
        // TODO: Replace background color with its own setting rather than using the
        //       category page indicator background as a workaround.
        iconView.setBackgroundColor(mCategoryPageIndicatorBackground);
        iconView.setImageResource(mEmojiCategory.getCategoryTabIcon(categoryId));
        iconView.setContentDescription(mEmojiCategory.getAccessibilityDescription(categoryId));
        tspec.setIndicator(iconView);