Throw authenticator exceptions

This commit is contained in:
M66B
2019-05-09 12:28:01 +02:00
parent 5780253a14
commit 9093486255
3 changed files with 22 additions and 18 deletions

View File

@@ -19,6 +19,8 @@ package eu.faircode.email;
Copyright 2018-2019 by Marcel Bokhorst (M66B)
*/
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.content.Context;
import android.content.SharedPreferences;
@@ -86,7 +88,7 @@ public class ViewModelBrowse extends ViewModel {
currentState.error = false;
}
int load() throws MessagingException, IOException {
int load() throws MessagingException, IOException, AuthenticatorException, OperationCanceledException {
final State state = currentState;
if (state == null || state.error)
return 0;