cleanup
This commit is contained in:
parent
c14b226c92
commit
6721e33c7e
|
@ -52,10 +52,10 @@ internal class Request<DATA : Any>(private val eventBus: EventBus?) {
|
|||
// Check if this is a certificateException
|
||||
CertUtil.getCertificateException(exception)
|
||||
// TODO Support certificate error once logged
|
||||
//?.also { unrecognizedCertificateException ->
|
||||
// ?.also { unrecognizedCertificateException ->
|
||||
// // Send the error to the bus, for a global management
|
||||
// eventBus?.post(GlobalError.CertificateError(unrecognizedCertificateException))
|
||||
//}
|
||||
// }
|
||||
?.also { unrecognizedCertificateException -> throw unrecognizedCertificateException }
|
||||
|
||||
if (isRetryable && currentRetryCount++ < maxRetryCount && exception.shouldBeRetried()) {
|
||||
|
|
|
@ -145,7 +145,6 @@ class UnrecognizedCertificateDialog @Inject constructor(
|
|||
builder.setOnDismissListener {
|
||||
Timber.d("Dismissed!")
|
||||
openDialogIds.remove(dialogId)
|
||||
|
||||
}
|
||||
|
||||
builder.show()
|
||||
|
@ -168,4 +167,4 @@ class UnrecognizedCertificateDialog @Inject constructor(
|
|||
*/
|
||||
fun onReject()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue