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
This commit is contained in:
Anthony Chen
2017-04-21 13:51:32 -07:00
parent 758635c288
commit e04afcb935

View File

@@ -1271,7 +1271,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
@Override
public float getTranslation() {
if (mShouldTranslateContents) {
if (!mShouldTranslateContents) {
return getTranslationX();
}