Don't reset notif translation when menu is open

If the user is viewing the notification menu (slide notification
partially to the left or right and see the Settings/snooze buttons), then
when the notification is updated, the notification's translation should
not be updated or else the notification menu snaps back unexpectedly
while the user is viewing the menu.

Fixes: 14878871
Test: manually tested with constantly updating notification (ie: Maps in
navigation) and also manually tested by posting a notification with a
delayed update via the Notify.apk

Change-Id: Ib7ebb6cd5b89590109ff7a7aa224ed537c6767de
This commit is contained in:
Beverly
2020-04-28 09:26:44 -04:00
committed by Beverly Tai
parent 77576fe964
commit 984dd77845

View File

@@ -1831,6 +1831,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
}
public void resetTranslation() {
if (mMenuRow != null && mMenuRow.isMenuVisible()) {
return;
}
if (mTranslateAnim != null) {
mTranslateAnim.cancel();
}