Merge "Remove stale search result about "Recent location requests" page" into sc-dev am: 62315005fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15172993 Change-Id: If9a5a7dd32c240d85ef69245b67cd0a81b407557
This commit is contained in:
@@ -24,11 +24,9 @@ import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
|
|||||||
import com.android.settings.R;
|
import com.android.settings.R;
|
||||||
import com.android.settings.dashboard.DashboardFragment;
|
import com.android.settings.dashboard.DashboardFragment;
|
||||||
import com.android.settings.dashboard.profileselector.ProfileSelectFragment;
|
import com.android.settings.dashboard.profileselector.ProfileSelectFragment;
|
||||||
import com.android.settings.search.BaseSearchIndexProvider;
|
|
||||||
import com.android.settingslib.search.SearchIndexable;
|
|
||||||
|
|
||||||
/** Dashboard Fragment to display all recent location requests, sorted by recency. */
|
/** @deprecated Use {@link RecentLocationAccessSeeAllFragment} instead. */
|
||||||
@SearchIndexable
|
@Deprecated
|
||||||
public class RecentLocationRequestSeeAllFragment extends DashboardFragment {
|
public class RecentLocationRequestSeeAllFragment extends DashboardFragment {
|
||||||
private static final String TAG = "RecentLocationReqAll";
|
private static final String TAG = "RecentLocationReqAll";
|
||||||
public static final String PATH =
|
public static final String PATH =
|
||||||
@@ -99,10 +97,4 @@ public class RecentLocationRequestSeeAllFragment extends DashboardFragment {
|
|||||||
R.string.menu_hide_system);
|
R.string.menu_hide_system);
|
||||||
updateMenu();
|
updateMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* For Search.
|
|
||||||
*/
|
|
||||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
|
||||||
new BaseSearchIndexProvider(R.xml.location_recent_requests_see_all);
|
|
||||||
}
|
}
|
||||||
|
@@ -62,7 +62,7 @@ public class CustomSiteMapRegistryTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldContainRecentLocationRequestSeeAllFragmentPairs() {
|
public void shouldContainRecentLocationAccessSeeAllFragmentPairs() {
|
||||||
assertThat(CustomSiteMapRegistry.CUSTOM_SITE_MAP.get(
|
assertThat(CustomSiteMapRegistry.CUSTOM_SITE_MAP.get(
|
||||||
RecentLocationAccessSeeAllFragment.class.getName())).isEqualTo(
|
RecentLocationAccessSeeAllFragment.class.getName())).isEqualTo(
|
||||||
LocationSettings.class.getName());
|
LocationSettings.class.getName());
|
||||||
|
Reference in New Issue
Block a user