mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Do some additional cleanup when switching handlers" into sc-dev
This commit is contained in:
@@ -1381,11 +1381,17 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
|
||||
/**
|
||||
* Cancels any running animation so that the active target can be overriden by a new swipe
|
||||
* handle (in case of quick switch).
|
||||
* handler (in case of quick switch).
|
||||
*/
|
||||
private void cancelCurrentAnimation() {
|
||||
mCanceled = true;
|
||||
mCurrentShift.cancelAnimation();
|
||||
|
||||
// Cleanup when switching handlers
|
||||
mInputConsumerProxy.unregisterCallback();
|
||||
mActivityInitListener.unregister();
|
||||
ActivityManagerWrapper.getInstance().unregisterTaskStackListener(mActivityRestartListener);
|
||||
mTaskSnapshot = null;
|
||||
}
|
||||
|
||||
private void invalidateHandler() {
|
||||
|
||||
Reference in New Issue
Block a user