[AA+] Log tap on SearchActionItem.

Bug: 178562918
Test: Presubmit
Change-Id: I42a44de4f3cc02ca331c4f99c107891c4658995d
This commit is contained in:
thiruram authored and Thiru Ramasamy committed 2021-02-22 22:39:41 +00:00
1 parent 1739c5c68e
commit f8f2a6ed0a
4 files changed
+27

No files matched your search

@@ -25,6 +25,9 @@ import android.os.UserHandle;
import androidx.annotation.Nullable;
import com.android.launcher3.logger.LauncherAtom.ItemInfo;
import com.android.launcher3.logger.LauncherAtom.SearchActionItem;
/**
* Represents a SearchAction with in launcher
*/
@@ -112,4 +115,15 @@ public class SearchActionItemInfo extends ItemInfoWithIcon {
public ItemInfoWithIcon clone() {
return new SearchActionItemInfo(this);
}
@Override
public ItemInfo buildProto(FolderInfo fInfo) {
return getDefaultItemInfoBuilder()
.setSearchActionItem(
SearchActionItem.newBuilder()
.setTitle(title.toString())
.setPackageName(mFallbackPackageName))
.setContainerInfo(getContainerInfo())
.build();
}
}