Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7efbff35 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

[Notif redesign] Fix group header motion on tap

We had previously made this motion more gradual during the dragging
gesture in I21ef172ba5ad14404e1c863c209a35bada3790d4, but that didn't
fix the motion when the group was expanded via tapping.

There were a few reasons why that didn't work in this case:
- the height used for the expandFactor calculation was only being
  updated when mUserLocked == true, so only while the user was directly
  interacting with the notification
- the translation (from the viewState) was only being applied in
  applyState, but that is only being called once for the tap-to-expand
  action; we have to also apply it in startAnimationToState

This allows us to remove the call fron NSSL that was directly updating
the alignment without any transition.

Fix: 402745695
Test: manual
Flag: android.app.notifications_redesign_templates
Change-Id: I2327de4dd1a14f40fae0d121de653516e3df55cb
parent 9d347fe0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment