public boolean isIndexDownloadAvailable(Book document) throws InstallException, BookException { // not sure how to integrate reuse this in JSword index download String version = document.getBookMetaData().getProperty("Version"); String versionSuffix = version!=null ? "-" + new Version(version).toString() : ""; String url = "http://www.crosswire.org/and-bible/indices/v1/"+document.getInitials()+versionSuffix+".zip"; return CommonUtils.isHttpUrlAvailable(url); }
if (version!=null) { Version versionObj = new Version(version); String versionMsg = BibleApplication.Companion.getApplication().getString(R.string.about_version, versionObj.toString()); about += "\n\n"+versionMsg;