From bf3ea5231fb28fc8d6fcc2fcb07339f783b12048 Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Wed, 5 Jul 2023 21:07:25 +0200 Subject: [PATCH] Add some more strings --- .../urihandler/URIHandlerActivity.java | 1 - app/src/main/res/layout/dialog_input_code_hotp.xml | 8 ++++---- app/src/main/res/layout/dialog_input_code_totp.xml | 8 ++++---- app/src/main/res/values-de-rDE/strings.xml | 5 +++++ app/src/main/res/values/strings.xml | 5 +++++ 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java index 6a4281b..0a08a1b 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java @@ -30,7 +30,6 @@ public class URIHandlerActivity extends AppCompatActivity { try { OTPData data = OTPParser.parse(intent.getData()); - // TODO: choose group, add code List groups = SettingsUtil.getGroups(this); String[] groupNames = new String[groups.size()]; for(int i = 0; i < groups.size(); i++) { diff --git a/app/src/main/res/layout/dialog_input_code_hotp.xml b/app/src/main/res/layout/dialog_input_code_hotp.xml index fc45af5..7ebf300 100644 --- a/app/src/main/res/layout/dialog_input_code_hotp.xml +++ b/app/src/main/res/layout/dialog_input_code_hotp.xml @@ -11,7 +11,7 @@ android:layout_height="wrap_content" android:ems="10" android:inputType="text" - android:hint="Name" + android:hint="@string/otp_add_name" android:autofillHints="" /> + android:text="@string/otp_add_checksum" /> \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_input_code_totp.xml b/app/src/main/res/layout/dialog_input_code_totp.xml index 806c3d0..e3949c7 100644 --- a/app/src/main/res/layout/dialog_input_code_totp.xml +++ b/app/src/main/res/layout/dialog_input_code_totp.xml @@ -11,7 +11,7 @@ android:layout_height="wrap_content" android:ems="10" android:inputType="text" - android:hint="Name" + android:hint="@string/otp_add_name" android:autofillHints="" /> + android:text="@string/otp_add_checksum" /> \ No newline at end of file diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml index 37e5599..dd5fcda 100644 --- a/app/src/main/res/values-de-rDE/strings.xml +++ b/app/src/main/res/values-de-rDE/strings.xml @@ -39,6 +39,11 @@ Code hinzugefügt Code hinzufügen Theme + Zähler + Prüfsumme hinzufügen + Geheimnis + Name + Intervall Anzeigen Bearbeiten diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 138fa69..a09d557 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -79,6 +79,11 @@ Code added Add Code Theme + Counter + Add Checksum + Secret + Name + Period View Edit