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

Commit bd867a3d authored by Tony Wickham's avatar Tony Wickham
Browse files

Don't use CharSequence as notification text

If a notification changes the color etc. on the CharSequence, then
it overrode our colors. Gmail for instance always makes the second
text dark (apparently), overriding our dark theme.

Change-Id: Ibd8751d70849fd10fd0114af02d382aba1771d4e
parent 561e5357
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -87,11 +87,11 @@ public class NotificationMainView extends FrameLayout implements SwipeHelper.Cal
        CharSequence title = mNotificationInfo.title;
        CharSequence text = mNotificationInfo.text;
        if (!TextUtils.isEmpty(title) && !TextUtils.isEmpty(text)) {
            mTitleView.setText(title);
            mTextView.setText(text);
            mTitleView.setText(title.toString());
            mTextView.setText(text.toString());
        } else {
            mTitleView.setMaxLines(2);
            mTitleView.setText(TextUtils.isEmpty(title) ? text : title);
            mTitleView.setText(TextUtils.isEmpty(title) ? text.toString() : title.toString());
            mTextView.setVisibility(GONE);
        }
        iconView.setBackground(mNotificationInfo.getIconForBackground(getContext(),