Skip to content

Commit 3a1568b

Browse files
committed
fix
1 parent 6ddee34 commit 3a1568b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

auth/src/main/java/com/firebase/ui/auth/ui/email/CheckEmailFragment.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
8787

8888
ImeHelper.setImeOnDoneListener(mEmailEditText, this);
8989

90-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && getFlowParams().enableHints) {
90+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
9191
mEmailEditText.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO);
9292
}
9393

@@ -130,7 +130,7 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
130130
if (!TextUtils.isEmpty(email)) {
131131
mEmailEditText.setText(email);
132132
// Previously auto-triggering the check is now removed.
133-
} else if (getFlowParams().enableHints) {
133+
} else if (getFlowParams().enableCredentials) {
134134
mHandler.fetchCredential();
135135
}
136136
}

auth/src/main/java/com/firebase/ui/auth/ui/phone/CheckPhoneNumberFragment.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
8585

8686
mSmsTermsText.setText(getString(R.string.fui_sms_terms_of_service,
8787
getString(R.string.fui_verify_phone_number)));
88-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && getFlowParams().enableHints) {
88+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
8989
mPhoneEditText.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO);
9090
}
9191
requireActivity().setTitle(getString(R.string.fui_verify_phone_number_title));
@@ -220,7 +220,7 @@ private void setDefaultCountryForSpinner() {
220220
"",
221221
countryIso,
222222
String.valueOf(PhoneNumberUtils.getCountryCode(countryIso))));
223-
} else if (getFlowParams().enableHints) {
223+
} else if (getFlowParams().enableCredentials) {
224224
// Launch phone number hint flow using the new API
225225
mCheckPhoneHandler.fetchCredential(requireActivity());
226226
}

0 commit comments

Comments
 (0)