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

Commit d716f0b2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Suppress "see all" from settings search."

parents 410c7ddc c8f021a2
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -21,8 +21,7 @@ import android.content.Context;
import android.location.SettingInjectorService;
import android.os.Bundle;
import android.provider.SearchIndexableResource;
import androidx.preference.Preference;
import androidx.preference.PreferenceGroup;

import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
import com.android.settings.R;
import com.android.settings.SettingsActivity;
@@ -42,6 +41,9 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.List;

import androidx.preference.Preference;
import androidx.preference.PreferenceGroup;

/**
 * System location settings (Settings > Location). The screen has three parts:
 * <ul>
@@ -177,5 +179,12 @@ public class LocationSettings extends DashboardFragment {
                    return buildPreferenceControllers(context, null /* fragment */,
                            null /* lifecycle */);
                }

                @Override
                public List<String> getNonIndexableKeys(Context context) {
                    final List<String> niks = super.getNonIndexableKeys(context);
                    niks.add("recent_location_requests_see_all_button"); // 'See all' button
                    return niks;
                }
            };
}