From 794cfbfa506f9349b30f421947a75d3539bdd02d Mon Sep 17 00:00:00 2001 From: Anthony Chen Date: Thu, 27 Apr 2017 14:29:12 -0700 Subject: [PATCH] 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 --- .../com/android/systemui/statusbar/ExpandableOutlineView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java index f68770895e341..255689072b121 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java @@ -45,7 +45,7 @@ public abstract class ExpandableOutlineView extends ExpandableView { private final ViewOutlineProvider mProvider = new ViewOutlineProvider() { @Override public void getOutline(View view, Outline outline) { - int translation = mShouldTranslateContents ? 0 : (int) getTranslation(); + int translation = mShouldTranslateContents ? (int) getTranslation() : 0; if (!mCustomOutline) { outline.setRoundRect(translation, mClipTopAmount,