commit | e04afcb935356320c4397985724b9f9573b57f25 | [log] [tgz] |
---|---|---|
author | Anthony Chen <ajchen@google.com> | Fri Apr 21 13:51:32 2017 -0700 |
committer | Anthony Chen <ajchen@google.com> | Fri Apr 21 13:51:32 2017 -0700 |
tree | 200d74230de61239038f7d763091711a791cb760 | |
parent | 758635c288845a202426778907cc401cee00b47f [diff] |
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
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 7277ff9..30bb181 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 @@ @Override public float getTranslation() { - if (mShouldTranslateContents) { + if (!mShouldTranslateContents) { return getTranslationX(); }