|
@@ -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);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|