Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44a12fc5 authored by Fan Zhang's avatar Fan Zhang
Browse files

Turn down app indexing for slices.

Bug: 112587202
Test: robotests
Change-Id: Ice84173bd9617f58689438c460522104776c46ce
parent 35ed23e8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
+0 −5
Original line number Diff line number Diff line
@@ -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) {