Skip to content

Commit 4bc45af

Browse files
SUPERCILEXsamtstern
authored andcommitted
Fix #549 (#552)
1 parent 25cdfaa commit 4bc45af

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/util/signincontainer/IdpSignInContainer.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,16 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
116116
}
117117

118118
mIdpProvider.setAuthenticationCallback(this);
119-
mIdpProvider.startLogin(getActivity());
119+
120+
if (savedInstanceState == null) {
121+
mIdpProvider.startLogin(getActivity());
122+
}
123+
}
124+
125+
@Override
126+
public void onSaveInstanceState(Bundle outState) {
127+
outState.putBoolean(ExtraConstants.HAS_EXISTING_INSTANCE, true);
128+
super.onSaveInstanceState(outState);
120129
}
121130

122131
@Override

0 commit comments

Comments
 (0)