Cancel launcher app transition when changing states

The app transition might change an object that the new
state depends on, causing an inconsistent state.

Bug: 72816542
Change-Id: Ia6dd52971b52be5589c88f4f6d93d06146fbadab
This commit is contained in:
Tony committed 2018-02-05 18:48:24 -08:00
1 parent 9c70e7e220
commit dc76f8e856
4 files changed
+23 -5

No files matched your search

@@ -33,7 +33,6 @@ import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.media.midi.MidiManager.OnDeviceOpenedListener;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
@@ -118,6 +117,14 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
mCurrentAnimator = animator;
}
@Override
public void finishAnimation() {
if (mCurrentAnimator != null && mCurrentAnimator.isRunning()) {
mCurrentAnimator.end();
}
mCurrentAnimator = null;
}
/**
* @return A Bundle with remote animations that controls how the window of the opening
* targets are displayed.