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:
@@ -1271,7 +1271,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
||||
|
||||
@Override
|
||||
public float getTranslation() {
|
||||
if (mShouldTranslateContents) {
|
||||
if (!mShouldTranslateContents) {
|
||||
return getTranslationX();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user