From f995fd96df96d4ad9bcb9fd92b1ffdc08ec13e27 Mon Sep 17 00:00:00 2001 From: Keunes <11229646+keunes@users.noreply.github.com> Date: Sat, 14 Jan 2023 14:46:19 +0100 Subject: [PATCH] Synchronisation label changes (#6213) --- .../NextcloudAuthenticationFragment.java | 6 +- .../res/layout/gpodnetauth_credentials.xml | 63 +++++++++---------- .../main/res/layout/gpodnetauth_device.xml | 6 ++ .../main/res/layout/gpodnetauth_dialog.xml | 31 ++++++--- app/src/main/res/layout/gpodnetauth_host.xml | 17 +++-- .../main/res/layout/nextcloud_auth_dialog.xml | 12 +++- ui/i18n/src/main/res/values/strings.xml | 41 ++++++------ 7 files changed, 104 insertions(+), 72 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/synchronization/NextcloudAuthenticationFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/synchronization/NextcloudAuthenticationFragment.java index 3578dace5..14440be47 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/synchronization/NextcloudAuthenticationFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/synchronization/NextcloudAuthenticationFragment.java @@ -39,9 +39,9 @@ public class NextcloudAuthenticationFragment extends DialogFragment viewBinding = NextcloudAuthDialogBinding.inflate(getLayoutInflater()); dialog.setView(viewBinding.getRoot()); - viewBinding.loginButton.setOnClickListener(v -> { + viewBinding.chooseHostButton.setOnClickListener(v -> { viewBinding.errorText.setVisibility(View.GONE); - viewBinding.loginButton.setVisibility(View.GONE); + viewBinding.chooseHostButton.setVisibility(View.GONE); viewBinding.loginProgressContainer.setVisibility(View.VISIBLE); nextcloudLoginFlow = new NextcloudLoginFlow(AntennapodHttpClient.getHttpClient(), viewBinding.serverUrlText.getText().toString(), getContext(), this); @@ -87,6 +87,6 @@ public class NextcloudAuthenticationFragment extends DialogFragment viewBinding.loginProgressContainer.setVisibility(View.GONE); viewBinding.errorText.setVisibility(View.VISIBLE); viewBinding.errorText.setText(errorMessage); - viewBinding.loginButton.setVisibility(View.VISIBLE); + viewBinding.chooseHostButton.setVisibility(View.VISIBLE); } } diff --git a/app/src/main/res/layout/gpodnetauth_credentials.xml b/app/src/main/res/layout/gpodnetauth_credentials.xml index e318f11d9..a5b8c594d 100644 --- a/app/src/main/res/layout/gpodnetauth_credentials.xml +++ b/app/src/main/res/layout/gpodnetauth_credentials.xml @@ -6,12 +6,18 @@ android:layout_height="wrap_content" android:orientation="vertical"> + + @@ -25,6 +31,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/username_label" + android:inputType="textNoSuggestions" android:lines="1" android:imeOptions="actionNext|flagNoFullscreen" /> @@ -33,6 +40,7 @@ + android:imeActionLabel="@string/synchronization_login_butLabel" /> - + + + android:textColor="?attr/icon_red" + android:textSize="@dimen/text_size_small" + android:maxLines="2" + android:ellipsize="end" + android:gravity="center" + android:visibility="gone" + tools:text=" message" /> - - - - -