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

Commit b51e90b0 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Ensure smart suggestion background color is updated just after...

Merge "Ensure smart suggestion background color is updated just after inflation" into qt-dev am: 404bc92b am: 4d3bf3ec
am: a295d2a6

Change-Id: I32fca603fa823fad8bc5c2cc377cdfb0c8f3ec53
parents 302fb65a a295d2a6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
    }
+2 −0
Original line number Diff line number Diff line
@@ -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;