[settings-pixel-search] Add slice timeout to avoid showing empty slice view

Bug: 181810946

Test: m
Change-Id: Icd83bbf428bf7d87e3957a6f6d888142c6008da3
This commit is contained in:
Hilary Huo
2021-03-09 16:11:28 -08:00
parent ded87e6505
commit 20a7cfbd3c
3 changed files with 54 additions and 3 deletions
@@ -16,6 +16,7 @@
package com.android.launcher3.allapps.search;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -39,6 +40,11 @@ public abstract class SearchAdapterProvider {
*/
public abstract void onBindView(AllAppsGridAdapter.ViewHolder holder, int position);
/**
* Called from LiveSearchManager to notify slice status updates.
*/
public abstract void onSliceStatusUpdate(Uri sliceUri);
/**
* Returns whether or not viewType can be handled by searchProvider
*/