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
|
// Check if this is a certificateException
|
||||||
CertUtil.getCertificateException(exception)
|
CertUtil.getCertificateException(exception)
|
||||||
// TODO Support certificate error once logged
|
// TODO Support certificate error once logged
|
||||||
//?.also { unrecognizedCertificateException ->
|
// ?.also { unrecognizedCertificateException ->
|
||||||
// // Send the error to the bus, for a global management
|
// // Send the error to the bus, for a global management
|
||||||
// eventBus?.post(GlobalError.CertificateError(unrecognizedCertificateException))
|
// eventBus?.post(GlobalError.CertificateError(unrecognizedCertificateException))
|
||||||
//}
|
// }
|
||||||
?.also { unrecognizedCertificateException -> throw unrecognizedCertificateException }
|
?.also { unrecognizedCertificateException -> throw unrecognizedCertificateException }
|
||||||
|
|
||||||
if (isRetryable && currentRetryCount++ < maxRetryCount && exception.shouldBeRetried()) {
|
if (isRetryable && currentRetryCount++ < maxRetryCount && exception.shouldBeRetried()) {
|
||||||
|
@ -145,7 +145,6 @@ class UnrecognizedCertificateDialog @Inject constructor(
|
|||||||
builder.setOnDismissListener {
|
builder.setOnDismissListener {
|
||||||
Timber.d("Dismissed!")
|
Timber.d("Dismissed!")
|
||||||
openDialogIds.remove(dialogId)
|
openDialogIds.remove(dialogId)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.show()
|
builder.show()
|
||||||
@ -168,4 +167,4 @@ class UnrecognizedCertificateDialog @Inject constructor(
|
|||||||
*/
|
*/
|
||||||
fun onReject()
|
fun onReject()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user