mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user