Remove logic for adding a search icon to action bar.
No longer used given that we don't show the search icon on any page. The main settings page now has the search bar. Change-Id: I9535028298739467e7fa9c75d1a2fb2b2fa3251b Fixes: 62230804 Bug: 37477506 Test: robotests
This commit is contained in:
@@ -43,23 +43,6 @@ public class SearchFeatureProviderImpl implements SearchFeatureProvider {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpSearchMenu(Menu menu, final Activity activity) {
|
||||
if (menu == null || activity == null) {
|
||||
return;
|
||||
}
|
||||
String menuTitle = activity.getString(R.string.search_menu);
|
||||
MenuItem menuItem = menu.add(Menu.NONE, Menu.NONE, Menu.NONE, menuTitle)
|
||||
.setIcon(R.drawable.ic_search_24dp)
|
||||
.setOnMenuItemClickListener(item -> {
|
||||
Intent intent = new Intent(activity, SearchActivity.class);
|
||||
activity.startActivity(intent);
|
||||
return true;
|
||||
});
|
||||
|
||||
menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DatabaseResultLoader getDatabaseSearchLoader(Context context, String query) {
|
||||
return new DatabaseResultLoader(context, query, getSiteMapManager());
|
||||
|
Reference in New Issue
Block a user