Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK) {
startActivity(SignedInActivity.createIntent(this, response));
finish();
return;
} else {
// Sign in failed
if (response == null) {
Expand All @@ -349,20 +348,16 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
return;
}

if (response.getErrorCode() == ErrorCodes.NO_NETWORK) {
if (response.getError().getErrorCode() == ErrorCodes.NO_NETWORK) {
showSnackbar(R.string.no_internet_connection);
return;
}

if (response.getErrorCode() == ErrorCodes.UNKNOWN_ERROR) {
showSnackbar(R.string.unknown_error);
return;
}

showSnackbar(R.string.unknown_error);
Log.e(TAG, "Sign-in error: ", response.getError());
}

showSnackbar(R.string.unknown_sign_in_response);
}
}
}
```

Alternatively, you can register a listener for authentication state changes;
Expand Down
2 changes: 1 addition & 1 deletion constants.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project.ext {
minSdk = 14

firebaseVersion = '11.8.0'
supportLibraryVersion = '27.0.2'
supportLibraryVersion = '27.1.0'
architectureVersion = '1.1.0'
kotlinVersion = '1.2.21'
}