Skip to content
Snippets Groups Projects
Commit 905ad551 authored by Steve Elliott's avatar Steve Elliott
Browse files

Fix initialization of SmartReplyView button colors

Fixes: 171344635
Test: manual
Change-Id: I1366eee5e50d0791ba241436d55d66ea42ac270b
parent a046679e
No related branches found
No related tags found
No related merge requests found
......@@ -102,8 +102,7 @@ public class SmartReplyView extends ViewGroup {
mHeightUpperLimit = NotificationUtils.getFontScaledHeight(mContext,
R.dimen.smart_reply_button_max_height);
mCurrentBackgroundColor = context.getColor(R.color.smart_reply_button_background);
mDefaultBackgroundColor = mCurrentBackgroundColor;
mDefaultBackgroundColor = context.getColor(R.color.smart_reply_button_background);
mDefaultTextColor = mContext.getColor(R.color.smart_reply_button_text);
mDefaultTextColorDarkBg = mContext.getColor(R.color.smart_reply_button_text_dark_bg);
mDefaultStrokeColor = mContext.getColor(R.color.smart_reply_button_stroke);
......@@ -142,8 +141,9 @@ public class SmartReplyView extends ViewGroup {
mSingleToDoubleLineButtonWidthIncrease =
2 * (doubleLineButtonPaddingHorizontal - singleLineButtonPaddingHorizontal);
mBreakIterator = BreakIterator.getLineInstance();
setBackgroundTintColor(mDefaultBackgroundColor);
reallocateCandidateButtonQueueForSqueezing();
}
......@@ -182,7 +182,7 @@ public class SmartReplyView extends ViewGroup {
public void resetSmartSuggestions(View newSmartReplyContainer) {
mSmartReplyContainer = newSmartReplyContainer;
removeAllViews();
mCurrentBackgroundColor = mDefaultBackgroundColor;
setBackgroundTintColor(mDefaultBackgroundColor);
}
/** Add buttons to the {@link SmartReplyView} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment