diff --git a/auth/src/main/AndroidManifest.xml b/auth/src/main/AndroidManifest.xml index 79c298859..841702f93 100644 --- a/auth/src/main/AndroidManifest.xml +++ b/auth/src/main/AndroidManifest.xml @@ -39,13 +39,13 @@ android:name=".ui.email.EmailActivity" android:label="@string/fui_sign_in_default" android:exported="false" - android:windowSoftInputMode="adjustPan" /> + android:windowSoftInputMode="adjustResize" /> + android:windowSoftInputMode="adjustResize|stateAlwaysVisible" /> findViewById(R.id.email_tos_and_pp_text); - TextView footerText = view.findViewById(R.id.email_footer_tos_and_pp_text); + TextView termsText = view.findViewById(R.id.email_tos_and_pp_text); + TextView footerText = view.findViewById(R.id.email_footer_tos_and_pp_text); FlowParameters flowParameters = getFlowParams(); + if (flowParameters.isSingleProviderFlow()) { PrivacyDisclosureUtils.setupTermsOfServiceAndPrivacyPolicyText(getContext(), getFlowParams(), termsText); } else { + termsText.setVisibility(View.GONE); PrivacyDisclosureUtils.setupTermsOfServiceFooter(getContext(), getFlowParams(), footerText); diff --git a/auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailFragment.java b/auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailFragment.java index add956b4f..9416bd709 100644 --- a/auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailFragment.java +++ b/auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailFragment.java @@ -146,7 +146,13 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat mEmailEditText.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO); } - if (savedInstanceState != null) { return; } + TextView footerText = view.findViewById(R.id.email_footer_tos_and_pp_text); + PrivacyDisclosureUtils.setupTermsOfServiceFooter(getContext(), getFlowParams(), footerText); + + // WARNING: Nothing below this line will be executed on rotation + if (savedInstanceState != null) { + return; + } // If email is passed in, fill in the field and move down to the name field. String email = mUser.getEmail(); @@ -168,9 +174,6 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat } else { safeRequestFocus(mEmailEditText); } - - TextView footerText = view.findViewById(R.id.email_footer_tos_and_pp_text); - PrivacyDisclosureUtils.setupTermsOfServiceFooter(getContext(), getFlowParams(), footerText); } private void safeRequestFocus(final View v) { diff --git a/auth/src/main/res/layout/fui_check_email_layout.xml b/auth/src/main/res/layout/fui_check_email_layout.xml index 28179b8b9..41e1e77a1 100644 --- a/auth/src/main/res/layout/fui_check_email_layout.xml +++ b/auth/src/main/res/layout/fui_check_email_layout.xml @@ -1,6 +1,5 @@ - - + + - - - + diff --git a/auth/src/main/res/layout/fui_confirmation_code_layout.xml b/auth/src/main/res/layout/fui_confirmation_code_layout.xml index 650f276ed..53c0270d7 100644 --- a/auth/src/main/res/layout/fui_confirmation_code_layout.xml +++ b/auth/src/main/res/layout/fui_confirmation_code_layout.xml @@ -1,5 +1,4 @@ - + + - diff --git a/auth/src/main/res/layout/fui_phone_layout.xml b/auth/src/main/res/layout/fui_phone_layout.xml index ffe1e092c..7685f223f 100644 --- a/auth/src/main/res/layout/fui_phone_layout.xml +++ b/auth/src/main/res/layout/fui_phone_layout.xml @@ -53,20 +53,14 @@ android:textIsSelectable="false" app:layout_constraintTop_toBottomOf="@+id/send_code" /> + + - diff --git a/auth/src/main/res/layout/fui_register_email_layout.xml b/auth/src/main/res/layout/fui_register_email_layout.xml index 8e84ab201..2d9a1eea1 100644 --- a/auth/src/main/res/layout/fui_register_email_layout.xml +++ b/auth/src/main/res/layout/fui_register_email_layout.xml @@ -1,5 +1,5 @@ - + android:layout_height="match_parent" + android:layout_marginTop="8dp" + android:paddingBottom="16dp" + android:clipToPadding="false"> + + + - - - + diff --git a/auth/src/main/res/values/styles.xml b/auth/src/main/res/values/styles.xml index ae3b546b1..cd5fd396f 100644 --- a/auth/src/main/res/values/styles.xml +++ b/auth/src/main/res/values/styles.xml @@ -230,4 +230,13 @@ #FFFFFFFF + +