Update parsers
This commit is contained in:
@@ -54,7 +54,7 @@ class MangaErrorDialog : AlertDialogFragment<DialogMangaErrorBinding>() {
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.setPositiveButton(R.string.report) { _, _ ->
|
||||
dismiss()
|
||||
error.report(TAG)
|
||||
error.report()
|
||||
}.setTitle(R.string.error_occurred)
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class ImportService : CoroutineIntentService() {
|
||||
}
|
||||
|
||||
override fun onError(startId: Int, error: Throwable) {
|
||||
error.report(null)
|
||||
error.report()
|
||||
}
|
||||
|
||||
private suspend fun importImpl(uri: Uri): Manga {
|
||||
|
||||
@@ -405,7 +405,7 @@ class ReaderActivity :
|
||||
if (ExceptionResolver.canResolve(exception)) {
|
||||
tryResolve(exception)
|
||||
} else {
|
||||
exception.report("ReaderActivity::onError")
|
||||
exception.report()
|
||||
}
|
||||
} else {
|
||||
onCancel(dialog)
|
||||
|
||||
@@ -59,8 +59,8 @@ fun Throwable.isReportable(): Boolean {
|
||||
return this is Error || this.javaClass in reportableExceptions
|
||||
}
|
||||
|
||||
fun Throwable.report(message: String?) {
|
||||
val exception = CaughtException(this, message)
|
||||
fun Throwable.report() {
|
||||
val exception = CaughtException(this, "${javaClass.simpleName}($message)")
|
||||
exception.sendWithAcra()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user