1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

fixed custom catalog search

This commit is contained in:
Nikolay Pultsin 2011-03-04 17:37:29 +00:00
parent 16fd2dd17e
commit ad05ea1664
9 changed files with 90 additions and 95 deletions

View file

@ -180,8 +180,12 @@ public class NetworkLibrary {
new NetworkDatabase.ICustomLinksHandler() {
public void handleCustomLinkData(int id, String siteName,
String title, String summary, String icon, Map<String,UrlInfo> infos) {
final ICustomNetworkLink link = OPDSLinkReader.createCustomLink(id, siteName, title, summary, icon, infos);
if (link != null) {
if (title != null &&
siteName != null &&
infos.get(INetworkLink.URL_MAIN) != null) {
final ICustomNetworkLink link = OPDSLinkReader.createCustomLink(
id, siteName, title, summary, icon, infos
);
addLinkInternal(link);
}
}