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

Commit 97baa50a authored by Brandon Dayauon's avatar Brandon Dayauon Committed by Android (Google) Code Review
Browse files

Merge "Make shortcuts on people row themed" into tm-qpr-dev

parents d30ef726 e640a9ea
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -374,9 +374,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,

    @UiThread
    protected void applyIconAndLabel(ItemInfoWithIcon info) {
        boolean useTheme = mDisplay == DISPLAY_WORKSPACE || mDisplay == DISPLAY_FOLDER
                || mDisplay == DISPLAY_TASKBAR;
        int flags = useTheme ? FLAG_THEMED : 0;
        int flags = shouldUseTheme() ? FLAG_THEMED : 0;
        if (mHideBadge) {
            flags |= FLAG_NO_BADGE;
        }
@@ -388,6 +386,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
        applyLabel(info);
    }

    protected boolean shouldUseTheme() {
        return mDisplay == DISPLAY_WORKSPACE || mDisplay == DISPLAY_FOLDER
                || mDisplay == DISPLAY_TASKBAR;
    }

    @UiThread
    private void applyLabel(ItemInfoWithIcon info) {
        setText(info.title);