Skip to content

Commit 6568e69

Browse files
fanky10samtstern
authored andcommitted
Fix Auth sample code for signing out (#137)
* Fix Auth code example for sign out
1 parent 0c9b868 commit 6568e69

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ Please fill out either the individual or corporate Contributor License Agreement
8181
(CLA).
8282

8383
* If you are an individual writing original source code and you're sure you
84-
own the intellectual property, then you'll need to sign an
84+
own the intellectual property, then you'll need to sign an
8585
[individual CLA](https://developers.google.com/open-source/cla/individual).
8686
* If you work for a company that wants to allow you to contribute your work,
87-
then you'll need to sign a
87+
then you'll need to sign a
8888
[corporate CLA](https://developers.google.com/open-source/cla/corporate).
8989

9090
Follow either of the two links above to access the appropriate CLA and
@@ -101,4 +101,4 @@ accept your pull requests.
101101
1. Ensure that your code adheres to the existing style of the library to which
102102
you are contributing.
103103
1. Ensure that your code has an appropriate set of unit tests which all pass.
104-
1. Submit a pull request and cc @puf or @mcdonamp
104+
1. Submit a pull request and cc @puf or @mcdonamp

auth/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ public void onClick(View v) {
211211
if (v.getId() == R.id.sign_out) {
212212
AuthUI.getInstance(this)
213213
.signOut(this)
214-
.addOnCompleteListener(new OnCompleteListener<AuthResult>() {
215-
public void onComplete(@NonNull Task<AuthResult> task) {
214+
.addOnCompleteListener(new OnCompleteListener<Void>() {
215+
public void onComplete(@NonNull Task<Void> task) {
216216
// user is now signed out
217217
startActivity(new Intent(MyActivity.this, SignInActivity.class));
218218
finish();
219-
});
219+
}
220220
});
221221
}
222222
}

0 commit comments

Comments
 (0)