Always report unexpected errors

This commit is contained in:
M66B
2018-12-01 10:47:08 +01:00
parent fe60acee7c
commit ce88d04a0f
11 changed files with 115 additions and 1 deletions

View File

@@ -994,6 +994,11 @@ public class FragmentAccount extends FragmentEx {
protected void onLoaded(Bundle args, Integer count) {
cbPrimary.setChecked(count == 0);
}
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getContext(), ex);
}
}.load(FragmentAccount.this, new Bundle());
} else {
int provider = savedInstanceState.getInt("provider");
@@ -1030,8 +1035,18 @@ public class FragmentAccount extends FragmentEx {
folders = new ArrayList<>();
setFolders(folders);
}
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getContext(), ex);
}
}.load(FragmentAccount.this, args);
}
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.unexpectedError(getContext(), ex);
}
}.load(this, args);
}