diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 6ac9fe213f..7d974a513a 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -505,9 +505,6 @@ public final class Launcher extends Activity // We just wanted the activity result here so we can clear mWaitingForResult break; } - // In any situation where we have a multi-step drop, we should reset the add info only after - // we complete the drop - resetAddInfo(); return result; } @@ -998,6 +995,7 @@ public final class Launcher extends Activity addWidgetToAutoAdvanceIfNeeded(launcherInfo.hostView, appWidgetInfo); } + resetAddInfo(); } private final BroadcastReceiver mReceiver = new BroadcastReceiver() { diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 4e03b757cb..746c682299 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -17,8 +17,6 @@ package com.android.launcher2; import android.animation.Animator; -import android.animation.Animator.AnimatorListener; -import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.TimeInterpolator;