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

Commit 794cfbfa authored by Anthony Chen's avatar Anthony Chen
Browse files

Fix bug in translating the outline of a notification.

When the contents of the notification is translating, then then outline
shoud translate with it. This logic was incorrectly reversed.

Test: booted up on Angler device, pop up notifications and swiped to see
shadow

Change-Id: Ib798cf79d3487c3af80343787353fe667c3e53fc
parent 1bfe9416
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -45,7 +45,7 @@ public abstract class ExpandableOutlineView extends ExpandableView {
    private final ViewOutlineProvider mProvider = new ViewOutlineProvider() {
    private final ViewOutlineProvider mProvider = new ViewOutlineProvider() {
        @Override
        @Override
        public void getOutline(View view, Outline outline) {
        public void getOutline(View view, Outline outline) {
            int translation = mShouldTranslateContents ? 0 : (int) getTranslation();
            int translation = mShouldTranslateContents ? (int) getTranslation() : 0;
            if (!mCustomOutline) {
            if (!mCustomOutline) {
                outline.setRoundRect(translation,
                outline.setRoundRect(translation,
                        mClipTopAmount,
                        mClipTopAmount,