From 138326676afe2b677fd3fd8f613d69cff571db08 Mon Sep 17 00:00:00 2001 From: Sergey Eremin Date: Mon, 18 Sep 2017 21:46:30 +0300 Subject: [PATCH] One more exception type is going to be considered a network error --- .../java/com/github/yeriomin/yalpstore/GoogleApiAsyncTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/GoogleApiAsyncTask.java b/app/src/main/java/com/github/yeriomin/yalpstore/GoogleApiAsyncTask.java index 8fc6a678..0e0a1d65 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/GoogleApiAsyncTask.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/GoogleApiAsyncTask.java @@ -16,6 +16,7 @@ import java.net.UnknownHostException; import javax.net.ssl.SSLHandshakeException; +import javax.net.ssl.SSLPeerUnverifiedException; abstract class GoogleApiAsyncTask extends AsyncTask { @@ -123,6 +124,7 @@ protected void processAuthException(AuthException e) { static public boolean noNetwork(Throwable e) { return e instanceof UnknownHostException || e instanceof SSLHandshakeException + || e instanceof SSLPeerUnverifiedException || e instanceof ConnectException || e instanceof SocketException || e instanceof SocketTimeoutException;