Removed some logs.

This commit is contained in:
Amine 2018-12-09 14:26:20 +01:00
parent f0d4b63a97
commit fa9cce6783
2 changed files with 2 additions and 6 deletions

View File

@ -274,7 +274,7 @@ class ArticleFragment : Fragment() {
URL(response.body()!!.url) URL(response.body()!!.url)
url = response.body()!!.url url = response.body()!!.url
} catch (e: MalformedURLException) { } catch (e: MalformedURLException) {
ACRA.getErrorReporter().maybeHandleSilentException(e, activity!!) // Mercury returned a relative url. We do nothing.
} }
} catch (e: Exception) { } catch (e: Exception) {
if (context != null) { if (context != null) {

View File

@ -148,11 +148,7 @@ fun String.isBaseUrlValid(logErrors: Boolean, ctx: Context): Boolean {
existsAndEndsWithSlash = "" == pathSegments[pathSegments.size - 1] existsAndEndsWithSlash = "" == pathSegments[pathSegments.size - 1]
} }
val isValid = Patterns.WEB_URL.matcher(this).matches() && existsAndEndsWithSlash return Patterns.WEB_URL.matcher(this).matches() && existsAndEndsWithSlash
if (!isValid && logErrors) {
ACRA.getErrorReporter().doHandleSilentException(java.lang.Exception("Patterns.WEB_URL.matcher(this).matches() == ${Patterns.WEB_URL.matcher(this).matches()} && existsAndEndsWithSlash == $existsAndEndsWithSlash && baseUrl.pathSegments() == ${baseUrl?.pathSegments()}"), ctx)
}
return isValid
} }
fun Context.openInBrowserAsNewTask(i: Item) { fun Context.openInBrowserAsNewTask(i: Item) {