File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
config/app/src/main/java/com/google/samples/quickstart/config
database/app/src/main/java/com/google/firebase/quickstart/database Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ private void fetchDiscount() {
113
113
// more than cacheExpiration seconds ago. Thus the next fetch would go to the server unless
114
114
// throttling is in progress. The default expiration duration is 43200 (12 hours).
115
115
mFirebaseRemoteConfig .fetch (cacheExpiration )
116
- .addOnCompleteListener (new OnCompleteListener <Void >() {
116
+ .addOnCompleteListener (this , new OnCompleteListener <Void >() {
117
117
@ Override
118
118
public void onComplete (@ NonNull Task <Void > task ) {
119
119
if (task .isSuccessful ()) {
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ private void signIn() {
71
71
String password = mPasswordField .getText ().toString ();
72
72
73
73
mAuth .signInWithEmailAndPassword (email , password )
74
- .addOnCompleteListener (new OnCompleteListener <AuthResult >() {
74
+ .addOnCompleteListener (this , new OnCompleteListener <AuthResult >() {
75
75
@ Override
76
76
public void onComplete (@ NonNull Task <AuthResult > task ) {
77
77
Log .d (TAG , "signIn:onComplete:" + task .isSuccessful ());
@@ -98,7 +98,7 @@ private void signUp() {
98
98
String password = mPasswordField .getText ().toString ();
99
99
100
100
mAuth .createUserWithEmailAndPassword (email , password )
101
- .addOnCompleteListener (new OnCompleteListener <AuthResult >() {
101
+ .addOnCompleteListener (this , new OnCompleteListener <AuthResult >() {
102
102
@ Override
103
103
public void onComplete (@ NonNull Task <AuthResult > task ) {
104
104
Log .d (TAG , "createUser:onComplete:" + task .isSuccessful ());
You can’t perform that action at this time.
0 commit comments