summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/shortcuts
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-11-23 02:24:32 +0530
committerSunny Goyal <sunnygoyal@google.com>2016-12-15 09:30:35 -0800
commit6c46a6d324310bd2fc0ea223c9782ba6394512e7 (patch)
tree242df2742a7f4f96bdcdf6474ea151e3616fe356 /src/com/android/launcher3/shortcuts
parentfa94c79ca62cb1b7257d6ed4cc8684bb38a20a1f (diff)
downloadandroid_packages_apps_Trebuchet-6c46a6d324310bd2fc0ea223c9782ba6394512e7.tar.gz
android_packages_apps_Trebuchet-6c46a6d324310bd2fc0ea223c9782ba6394512e7.tar.bz2
android_packages_apps_Trebuchet-6c46a6d324310bd2fc0ea223c9782ba6394512e7.zip
Using java_style enum generation for proto
This makes it easier to track various method parameters and simplifies debug logging Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
Diffstat (limited to 'src/com/android/launcher3/shortcuts')
-rw-r--r--src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
index a2534926f..9cbd5f8f2 100644
--- a/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
+++ b/src/com/android/launcher3/shortcuts/DeepShortcutsContainer.java
@@ -66,7 +66,8 @@ import com.android.launcher3.dragndrop.DragLayer;
import com.android.launcher3.dragndrop.DragOptions;
import com.android.launcher3.dragndrop.DragView;
import com.android.launcher3.graphics.TriangleShape;
-import com.android.launcher3.userevent.nano.LauncherLogProto;
+import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
+import com.android.launcher3.userevent.nano.LauncherLogProto.ItemType;
import com.android.launcher3.userevent.nano.LauncherLogProto.Target;
import java.util.Collections;
@@ -523,9 +524,9 @@ public class DeepShortcutsContainer extends AbstractFloatingView
@Override
public void fillInLogContainerData(View v, ItemInfo info, Target target, Target targetParent) {
- target.itemType = LauncherLogProto.DEEPSHORTCUT;
+ target.itemType = ItemType.DEEPSHORTCUT;
// TODO: add target.rank
- targetParent.containerType = LauncherLogProto.DEEPSHORTCUTS;
+ targetParent.containerType = ContainerType.DEEPSHORTCUTS;
}
@Override