summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-04-23 15:17:50 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-04-23 15:17:50 -0700
commitb99ff3e83270e113f6182e337c4f7b0223bad92b (patch)
tree357fb2fee1efa1ea7248a420f59c0436860545c0 /src/com/android/launcher3/Launcher.java
parent685f98b2e23465c7f12839590663b53a40e36527 (diff)
downloadandroid_packages_apps_Trebuchet-b99ff3e83270e113f6182e337c4f7b0223bad92b.tar.gz
android_packages_apps_Trebuchet-b99ff3e83270e113f6182e337c4f7b0223bad92b.tar.bz2
android_packages_apps_Trebuchet-b99ff3e83270e113f6182e337c4f7b0223bad92b.zip
Add drop animation / Toast to widgettray
- show instruction toast on clicking the widget - Add animation when widget drops on the workspace. Added WidgetHostViewLoader to handle short press and assign widget host view to enable animation b/19897708 Change-Id: Iec36d72cb21bf09343d0beeb31a09bf8b0cb5e0d
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r--src/com/android/launcher3/Launcher.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 7364a9f20..c708b3c8e 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -104,6 +104,7 @@ import com.android.launcher3.compat.UserHandleCompat;
import com.android.launcher3.compat.UserManagerCompat;
import com.android.launcher3.util.Thunk;
import com.android.launcher3.widget.PendingAddWidgetInfo;
+import com.android.launcher3.widget.WidgetHostViewLoader;
import com.android.launcher3.widget.WidgetsContainerView;
import java.io.DataInputStream;
@@ -3953,7 +3954,7 @@ public class Launcher extends Activity
pendingInfo.minSpanX = item.minSpanX;
pendingInfo.minSpanY = item.minSpanY;
Bundle options = null;
- // AppsCustomizePagedView.getDefaultOptionsForWidget(this, pendingInfo);
+ WidgetHostViewLoader.getDefaultOptionsForWidget(this, pendingInfo);
int newWidgetId = mAppWidgetHost.allocateAppWidgetId();
boolean success = mAppWidgetManager.bindAppWidgetIdIfAllowed(