Skip to content

Commit 284e28c

Browse files
committed
Handle exception case to call failure.
1 parent 93b0015 commit 284e28c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/com/androidquery/auth/GoogleHandle.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,19 @@ private class Task extends AsyncTask<String, String, Bundle>{
159159
@Override
160160
protected Bundle doInBackground(String... params) {
161161

162-
AccountManagerFuture<Bundle> future = am.getAuthToken(acc, type, null, act, null, null);
163-
164162
Bundle bundle = null;
165163

166164
try {
165+
AccountManagerFuture<Bundle> future = am.getAuthToken(acc, type, null, act, null, null);
167166
bundle = future.getResult();
168167
} catch (OperationCanceledException e) {
169168
} catch (AuthenticatorException e) {
170169
AQUtility.debug(e);
171-
} catch (IOException e) {
170+
} catch (Exception e) {
172171
AQUtility.debug(e);
173172
}
174173

174+
175175
return bundle;
176176
}
177177

0 commit comments

Comments
 (0)