Merge "Ensure smart suggestion background color is updated just after inflation" into qt-dev

am: 404bc92bf5

Change-Id: I4e662b5adc6995bb51d36833df3719f845a7d1ec
This commit is contained in:
Selim Cinek
2019-05-24 11:58:28 -07:00
committed by android-build-merger
2 changed files with 6 additions and 0 deletions

View File

@@ -1045,6 +1045,10 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
return calculateBgColor(false /* withTint */, false /* withOverride */);
}
public int getCurrentBackgroundTint() {
return mCurrentBackgroundTint;
}
public boolean isPinned() {
return false;
}

View File

@@ -1444,6 +1444,8 @@ public class NotificationContentView extends FrameLayout {
smartReplyView.resetSmartSuggestions(smartReplyContainer);
smartReplyView.addPreInflatedButtons(
inflatedSmartReplyView.getSmartSuggestionButtons());
// Ensure the colors of the smart suggestion buttons are up-to-date.
smartReplyView.setBackgroundTintColor(entry.getRow().getCurrentBackgroundTint());
smartReplyContainer.setVisibility(View.VISIBLE);
}
return smartReplyView;