remove search box

This commit is contained in:
zzz
2012-04-20 13:25:29 +00:00
parent 195a4e971d
commit 79a7c14fdf
3 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,7 @@ public class HomeHelper extends HelperBase {
static final String PROP_SERVICES = "routerconsole.services";
static final String PROP_FAVORITES = "routerconsole.favorites";
static final String PROP_OLDHOME = "routerconsole.oldHomePage";
private static final String PROP_SEARCH = "routerconsole.showSearch";
static final String DEFAULT_SERVICES =
_x("Addressbook") + S + _x("Manage your I2P hosts file here (I2P domain name resolution)") + S + "/susidns/index" + S + I + "book_addresses.png" + S +
@ -62,6 +63,10 @@ public class HomeHelper extends HelperBase {
return _context.getProperty(Messages.PROP_LANG) == null;
}
public boolean shouldShowSearch() {
return _context.getBooleanProperty(PROP_SEARCH);
}
public String getServices() {
List<App> plugins = NavHelper.getClientApps(_context);
return homeTable(PROP_SERVICES, DEFAULT_SERVICES, plugins);