summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2016-06-22 20:35:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-06-22 20:35:31 +0000
commitec1b1c542ca0648747b3b0bc3fd45922caa8ddaa (patch)
treefa66aad52a372f49721795662123ef48df261d46 /src/com/android/launcher3/model
parent8e6a8004808fbbf782812a6cd75324a7008cc610 (diff)
parentbfbf7f9f4a0b300613f0ff27a4eb592d88c08325 (diff)
downloadandroid_packages_apps_Trebuchet-ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa.tar.gz
android_packages_apps_Trebuchet-ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa.tar.bz2
android_packages_apps_Trebuchet-ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa.zip
Merge "Add support for launcher shortcuts." into ub-launcher3-calgary
Diffstat (limited to 'src/com/android/launcher3/model')
-rw-r--r--src/com/android/launcher3/model/GridSizeMigrationTask.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/launcher3/model/GridSizeMigrationTask.java b/src/com/android/launcher3/model/GridSizeMigrationTask.java
index 9db79f061..cb1acaac2 100644
--- a/src/com/android/launcher3/model/GridSizeMigrationTask.java
+++ b/src/com/android/launcher3/model/GridSizeMigrationTask.java
@@ -641,10 +641,11 @@ public class GridSizeMigrationTask {
// calculate weight
switch (entry.itemType) {
case Favorites.ITEM_TYPE_SHORTCUT:
+ case Favorites.ITEM_TYPE_DEEP_SHORTCUT:
case Favorites.ITEM_TYPE_APPLICATION: {
verifyIntent(c.getString(indexIntent));
- entry.weight = entry.itemType == Favorites.ITEM_TYPE_SHORTCUT
- ? WT_SHORTCUT : WT_APPLICATION;
+ entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
+ WT_APPLICATION : WT_SHORTCUT;
break;
}
case Favorites.ITEM_TYPE_FOLDER: {
@@ -715,10 +716,11 @@ public class GridSizeMigrationTask {
// calculate weight
switch (entry.itemType) {
case Favorites.ITEM_TYPE_SHORTCUT:
+ case Favorites.ITEM_TYPE_DEEP_SHORTCUT:
case Favorites.ITEM_TYPE_APPLICATION: {
verifyIntent(c.getString(indexIntent));
- entry.weight = entry.itemType == Favorites.ITEM_TYPE_SHORTCUT
- ? WT_SHORTCUT : WT_APPLICATION;
+ entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
+ WT_APPLICATION : WT_SHORTCUT;
break;
}
case Favorites.ITEM_TYPE_APPWIDGET: {