Turn down app indexing for slices.

Bug: 112587202
Test: robotests
Change-Id: Ice84173bd9617f58689438c460522104776c46ce
This commit is contained in:
Fan Zhang
2018-08-28 13:43:08 -07:00
parent 35ed23e8bf
commit 44a12fc5ee
2 changed files with 3 additions and 6 deletions

View File

@@ -50,7 +50,9 @@ public interface DeviceIndexFeatureProvider {
// When the device language changes, re-index so Slices trigger in device language.
Locale LANGUAGE = Locale.getDefault();
boolean isIndexingEnabled();
default boolean isIndexingEnabled() {
return false;
}
void index(Context context, CharSequence title, Uri sliceUri, Uri launchUri,
List<String> keywords);

View File

@@ -21,11 +21,6 @@ import java.util.List;
public class DeviceIndexFeatureProviderImpl implements DeviceIndexFeatureProvider {
@Override
public boolean isIndexingEnabled() {
return false;
}
@Override
public void index(Context context, CharSequence title, Uri sliceUri, Uri launchUri,
List<String> keywords) {