Skip to content

Commit 6b5baed

Browse files
UI is not updating when user email is verified in EmailPasswordActivity (#1249)
1 parent b19f4c8 commit 6b5baed

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

auth/app/src/main/java/com/google/firebase/quickstart/auth/java/EmailPasswordActivity.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public void onStart() {
7272
super.onStart();
7373
// Check if user is signed in (non-null) and update UI accordingly.
7474
FirebaseUser currentUser = mAuth.getCurrentUser();
75-
updateUI(currentUser);
75+
if(currentUser != null){
76+
reload();
77+
}
7678
}
7779
// [END on_start_check_user]
7880

auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/EmailPasswordActivity.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class EmailPasswordActivity : BaseActivity(), View.OnClickListener {
4646
super.onStart()
4747
// Check if user is signed in (non-null) and update UI accordingly.
4848
val currentUser = auth.currentUser
49-
updateUI(currentUser)
49+
if(currentUser != null){
50+
reload();
51+
}
5052
}
5153
// [END on_start_check_user]
5254

0 commit comments

Comments
 (0)