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" /> - - - - -