Support ACTION/THUMBNAIL/SUGGEST corpus for rendering rendering

Hookup notifyEvent for metrics, on device intelligence.


Bug: 178454668
Bug: 178455221

Test: manual (See attached screenshots in the bug)

Change-Id: I652b4f2b0644a4726ccc3e01ce4c945a719f96a8
Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
This commit is contained in:
Hyunyoung Song committed 2021-01-27 19:13:09 +00:00
1 parent f1db62cc98
commit 7575cca264
21 files changed
+583 -314

No files matched your search

@@ -18,6 +18,7 @@ package com.android.launcher3.search;
import android.app.search.SearchTarget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.Nullable;
@@ -27,8 +28,7 @@ import java.util.List;
/**
* Header text view that shows a title for a given section in All apps search
*/
public class SearchSectionHeaderView extends TextView implements
SearchTargetHandler {
public class SearchSectionHeaderView extends TextView implements SearchTargetHandler {
public SearchSectionHeaderView(Context context) {
super(context);
@@ -44,8 +44,19 @@ public class SearchSectionHeaderView extends TextView implements
}
@Override
public void applySearchTarget(SearchTarget parentTarget, List<SearchTarget> children) {
public void apply(SearchTarget parentTarget, List<SearchTarget> children) {
setText(parentTarget.getSearchAction().getTitle());
setVisibility(VISIBLE);
}
@Override
public void onClick(View view) {
// do nothing.
}
@Override
public boolean onLongClick(View view) {
// do nothing.
return false;
}
}