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: Synchronisation label changes (#6213)
---
.../NextcloudAuthenticationFragment.java | 6 +--
.../main/res/layout/gpodnetauth_credentials.xml | 63 +++++++++++-----------
app/src/main/res/layout/gpodnetauth_device.xml | 6 +++
app/src/main/res/layout/gpodnetauth_dialog.xml | 31 +++++++----
app/src/main/res/layout/gpodnetauth_host.xml | 17 ++++--
app/src/main/res/layout/nextcloud_auth_dialog.xml | 12 +++--
6 files changed, 82 insertions(+), 53 deletions(-)
(limited to 'app')
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:visibility="gone"
+ android:layout_gravity="right" />
-
+
-
+
diff --git a/app/src/main/res/layout/gpodnetauth_device.xml b/app/src/main/res/layout/gpodnetauth_device.xml
index cb133f684..6e051ecf3 100644
--- a/app/src/main/res/layout/gpodnetauth_device.xml
+++ b/app/src/main/res/layout/gpodnetauth_device.xml
@@ -6,6 +6,12 @@
android:layout_height="wrap_content"
android:orientation="vertical">
+
+
-
+
+
-
-
-
-
+
+
+
+
+
+
+
-
\ No newline at end of file
+
+
diff --git a/app/src/main/res/layout/gpodnetauth_host.xml b/app/src/main/res/layout/gpodnetauth_host.xml
index bcee9b880..7f2d16f11 100644
--- a/app/src/main/res/layout/gpodnetauth_host.xml
+++ b/app/src/main/res/layout/gpodnetauth_host.xml
@@ -3,18 +3,26 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:clipToPadding="false">
+
+
@@ -23,9 +31,8 @@
+ android:text="@string/proceed_to_login_butLabel" />
diff --git a/app/src/main/res/layout/nextcloud_auth_dialog.xml b/app/src/main/res/layout/nextcloud_auth_dialog.xml
index 08cf05ef9..c08c5b969 100644
--- a/app/src/main/res/layout/nextcloud_auth_dialog.xml
+++ b/app/src/main/res/layout/nextcloud_auth_dialog.xml
@@ -7,6 +7,12 @@
android:orientation="vertical"
android:clipToPadding="false">
+
+
@@ -55,9 +61,9 @@
android:layout_marginBottom="16dp" />
+ android:text="@string/proceed_to_login_butLabel" />
--
cgit v1.2.3