Skip to content

Commit

Permalink
[Motion] Removed internal listener from container transform after tra…
Browse files Browse the repository at this point in the history
…nsition ends.

Resolves #1601

PiperOrigin-RevId: 325798894
(cherry picked from commit 05e0496)
  • Loading branch information
hunterstich authored and dsn5ft committed Aug 28, 2020
1 parent 821bf26 commit 42b03b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ public void onTransitionStart(@NonNull Transition transition) {

@Override
public void onTransitionEnd(@NonNull Transition transition) {
removeListener(this);
if (holdAtEndEnabled) {
// Keep drawable showing and views hidden (useful for Activity return transitions)
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ public void onTransitionStart(@NonNull Transition transition) {

@Override
public void onTransitionEnd(@NonNull Transition transition) {
removeListener(this);
if (holdAtEndEnabled) {
// Keep drawable showing and views hidden (useful for Activity return transitions)
return;
Expand Down

0 comments on commit 42b03b3

Please sign in to comment.