Merge "Ensure smart suggestion background color is updated just after inflation" into qt-dev
This commit is contained in:
@@ -1045,6 +1045,10 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
|||||||
return calculateBgColor(false /* withTint */, false /* withOverride */);
|
return calculateBgColor(false /* withTint */, false /* withOverride */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getCurrentBackgroundTint() {
|
||||||
|
return mCurrentBackgroundTint;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isPinned() {
|
public boolean isPinned() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1444,6 +1444,8 @@ public class NotificationContentView extends FrameLayout {
|
|||||||
smartReplyView.resetSmartSuggestions(smartReplyContainer);
|
smartReplyView.resetSmartSuggestions(smartReplyContainer);
|
||||||
smartReplyView.addPreInflatedButtons(
|
smartReplyView.addPreInflatedButtons(
|
||||||
inflatedSmartReplyView.getSmartSuggestionButtons());
|
inflatedSmartReplyView.getSmartSuggestionButtons());
|
||||||
|
// Ensure the colors of the smart suggestion buttons are up-to-date.
|
||||||
|
smartReplyView.setBackgroundTintColor(entry.getRow().getCurrentBackgroundTint());
|
||||||
smartReplyContainer.setVisibility(View.VISIBLE);
|
smartReplyContainer.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
return smartReplyView;
|
return smartReplyView;
|
||||||
|
|||||||
Reference in New Issue
Block a user