mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
Add check of SSL unverified to show a dialog
This commit is contained in:
parent
f11111c1b4
commit
50f829a250
2 changed files with 14 additions and 7 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 39e3ddaa07b0943b034b34a84a33b4dc4c7475d0
|
||||
Subproject commit 573afa15382b67cc84f67fc9a7b2329a72ecb352
|
|
@ -1031,14 +1031,21 @@ public class FileDisplayActivity extends HookActivity implements
|
|||
.equals(event));
|
||||
|
||||
if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.
|
||||
equals(event) &&/// TODO refactor and make common
|
||||
equals(event) &&/// TODO refactor and make common
|
||||
|
||||
synchResult != null && !synchResult.isSuccess() &&
|
||||
(ResultCode.UNAUTHORIZED.equals(synchResult.getCode()) ||
|
||||
(synchResult.isException() && synchResult.getException()
|
||||
instanceof AuthenticatorException))) {
|
||||
synchResult != null && !synchResult.isSuccess()) {
|
||||
|
||||
requestCredentialsUpdate(context);
|
||||
if(ResultCode.UNAUTHORIZED.equals(synchResult.getCode()) ||
|
||||
synchResult.isIdPRedirection() ||
|
||||
(synchResult.isException() && synchResult.getException()
|
||||
instanceof AuthenticatorException)) {
|
||||
|
||||
requestCredentialsUpdate(context);
|
||||
|
||||
} else if(RemoteOperationResult.ResultCode.SSL_RECOVERABLE_PEER_UNVERIFIED.equals(synchResult.getCode())) {
|
||||
|
||||
showUntrustedCertDialog(synchResult);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue