summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-06-01 18:37:32 -0700
committerSunny Goyal <sunnygoyal@google.com>2015-06-02 15:20:03 -0700
commit5b9ebcab3c6c55dcb7575fdbcb77020a5ad274d4 (patch)
tree936c2cc4a203a5a00bed3bcb743dd1480f2d19b9 /src/com/android/launcher3/Launcher.java
parent59caa60222e55212c13110ca0890023b47356fa5 (diff)
downloadandroid_packages_apps_Trebuchet-5b9ebcab3c6c55dcb7575fdbcb77020a5ad274d4.tar.gz
android_packages_apps_Trebuchet-5b9ebcab3c6c55dcb7575fdbcb77020a5ad274d4.tar.bz2
android_packages_apps_Trebuchet-5b9ebcab3c6c55dcb7575fdbcb77020a5ad274d4.zip
Fixing preloaded widget not getting used for animation
> The preloaded widget was being set in a different instance of PendingAddWidgetInfo and was never getting used for animation. bug: 20699153 Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 2ff6adc99..975672764 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2370,6 +2370,9 @@ public class Launcher extends Activity
if (hostView != null) {
appWidgetId = hostView.getAppWidgetId();
addAppWidgetImpl(appWidgetId, info, hostView, info.info);
+
+ // Clear the boundWidget so that it doesn't get destroyed.
+ info.boundWidget = null;
} else {
// In this case, we either need to start an activity to get permission to bind
// the widget, or we need to start an activity to configure the widget, or both.