From e04afcb935356320c4397985724b9f9573b57f25 Mon Sep 17 00:00:00 2001 From: Anthony Chen Date: Fri, 21 Apr 2017 13:51:32 -0700 Subject: [PATCH] Fix bug with translation in ExpandableNotificationRow. The translation X should only be used if the entire Notification row is translating (meaning that mShouldTranslateContents is false). Test: booted up on AAE headunit and Angler device Change-Id: I5d04f2bd64cb79421ad30f844ba5e6aa8d1f105d --- .../android/systemui/statusbar/ExpandableNotificationRow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 7277ff90a771f..30bb181114c4a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -1271,7 +1271,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView @Override public float getTranslation() { - if (mShouldTranslateContents) { + if (!mShouldTranslateContents) { return getTranslationX(); }