From dd51c32d32116f472a2ec35ba95df1a059120cb0 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Fri, 21 Oct 2022 12:17:32 +0600 Subject: [PATCH] 774-Hide_detail_page_after_login_for_murena_and_google_accounts issue:https://gitlab.e.foundation/e/os/backlog/-/issues/774 We don't want to show the group setup window after the detection phase of the login functionality for murena & google accounts. So, we show detection ui for this step. --- .../ui/setup/AccountDetailsFragment.kt | 4 + .../main/res/layout/login_account_details.xml | 193 ++++++++++-------- 2 files changed, 109 insertions(+), 88 deletions(-) diff --git a/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt b/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt index 26a940f49..849a56953 100644 --- a/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt +++ b/app/src/main/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragment.kt @@ -139,6 +139,10 @@ class AccountDetailsFragment : Fragment() { if (requireActivity().intent.getStringExtra(LoginActivity.SETUP_ACCOUNT_PROVIDER_TYPE) == LoginActivity.ACCOUNT_PROVIDER_EELO || requireActivity().intent.getStringExtra(LoginActivity.SETUP_ACCOUNT_PROVIDER_TYPE) == LoginActivity.ACCOUNT_PROVIDER_GOOGLE) { + + v.mainDetailLayout.visibility = View.GONE + v.mainLoadingLayout.visibility = View.VISIBLE + val name = model.name.value if (name.isNullOrBlank()) model.nameError.value = getString(R.string.login_account_name_required) diff --git a/app/src/main/res/layout/login_account_details.xml b/app/src/main/res/layout/login_account_details.xml index c564d0444..511675397 100644 --- a/app/src/main/res/layout/login_account_details.xml +++ b/app/src/main/res/layout/login_account_details.xml @@ -1,129 +1,146 @@ + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools"> - + + + + type="at.bitfire.davdroid.ui.setup.AccountDetailsFragment.AccountDetailsModel" /> - - + android:layout_height="match_parent" + android:orientation="vertical"> - + android:layout_height="0dp" + android:layout_margin="@dimen/activity_margin" + android:layout_weight="1"> - + android:orientation="vertical"> - - - - + android:layout_marginBottom="14dp" + android:text="@string/login_create_account" /> - - - + + + + - + + android:layout_marginTop="8dp" + android:text="@string/login_account_name_info" /> - + android:orientation="vertical"> - + - - + - + + + + - + android:layout_height="wrap_content"> + + + + + +