mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Merge "Clear drag views during swipe up animation progress" into tm-qpr-dev am: 7b516983bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20446856 Change-Id: Ib41e1a777127f4562d3f5c7dd4242f5d84fb62b3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -95,6 +95,7 @@ import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.anim.AnimationSuccessListener;
|
||||
import com.android.launcher3.anim.AnimatorPlaybackController;
|
||||
import com.android.launcher3.dragndrop.DragView;
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
import com.android.launcher3.logging.StatsLogManager.StatsLogger;
|
||||
import com.android.launcher3.statemanager.BaseState;
|
||||
@@ -1381,6 +1382,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
// If we are transitioning to launcher, then listen for the activity to be restarted while
|
||||
// the transition is in progress
|
||||
if (mGestureState.getEndTarget().isLauncher) {
|
||||
// This is also called when the launcher is resumed, in order to clear the pending
|
||||
// widgets that have yet to be configured.
|
||||
DragView.removeAllViews(mActivity);
|
||||
|
||||
TaskStackChangeListeners.getInstance().registerTaskStackListener(
|
||||
mActivityRestartListener);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user