diff options
-rw-r--r-- | protos/launcher_log.proto | 1 | ||||
-rw-r--r-- | src/com/android/launcher3/logging/LoggerUtils.java | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/protos/launcher_log.proto b/protos/launcher_log.proto index 02c6b0f41..49fd43617 100644 --- a/protos/launcher_log.proto +++ b/protos/launcher_log.proto @@ -56,6 +56,7 @@ message Target { optional int32 predictedRank = 15; optional TargetExtension extension = 16; optional TipType tip_type = 17; + optional int32 search_query_length = 18; } // Used to define what type of item a Target would represent. diff --git a/src/com/android/launcher3/logging/LoggerUtils.java b/src/com/android/launcher3/logging/LoggerUtils.java index 1ffa69857..9b75b43b4 100644 --- a/src/com/android/launcher3/logging/LoggerUtils.java +++ b/src/com/android/launcher3/logging/LoggerUtils.java @@ -144,6 +144,10 @@ public class LoggerUtils { + "), pageIdx=" + t.pageIndex; } + if (t.searchQueryLength != 0) { + typeStr += ", searchQueryLength=" + t.searchQueryLength; + } + if (t.itemType == ItemType.TASK) { typeStr += ", pageIdx=" + t.pageIndex; } |