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
2018-02-02 21:45:39 -06:00
parent 9c70e7e220
commit dc76f8e856
4 changed files with 23 additions and 5 deletions

View File

@@ -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.