summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-02-02 15:41:45 -0800
committerAdam Cohen <adamcohen@google.com>2012-02-02 15:41:45 -0800
commit6af9af057f2e40c54a4ed447c4628eef7dc15683 (patch)
treebe1f118767dcfddaad3c5edb02220ddc5fecd8fd /src/com/android/launcher2
parentaf0d8cea311d527aaf7e5f014b1c864fee6b882d (diff)
downloadandroid_packages_apps_Trebuchet-6af9af057f2e40c54a4ed447c4628eef7dc15683.tar.gz
android_packages_apps_Trebuchet-6af9af057f2e40c54a4ed447c4628eef7dc15683.tar.bz2
android_packages_apps_Trebuchet-6af9af057f2e40c54a4ed447c4628eef7dc15683.zip
Fix issue where launcher didn't return to workspace on screen off (issue 5628744)
Change-Id: Ic058cf7a803d2fe7be98325138cd5bd52a96cd9c
Diffstat (limited to 'src/com/android/launcher2')
-rw-r--r--src/com/android/launcher2/Launcher.java4
-rw-r--r--src/com/android/launcher2/Workspace.java2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 6ac9fe213..7d974a513 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 4e03b757c..746c68229 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;