Add some more strings

This commit is contained in:
MrLetsplay 2023-07-05 21:07:25 +02:00
parent 4e030eba38
commit bf3ea5231f
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
5 changed files with 18 additions and 9 deletions

View File

@ -30,7 +30,6 @@ public class URIHandlerActivity extends AppCompatActivity {
try {
OTPData data = OTPParser.parse(intent.getData());
// TODO: choose group, add code
List<String> groups = SettingsUtil.getGroups(this);
String[] groupNames = new String[groups.size()];
for(int i = 0; i < groups.size(); i++) {

View File

@ -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="" />
<EditText
@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:hint="Secret"
android:hint="@string/otp_add_secret"
android:autofillHints="" />
<Spinner
@ -43,13 +43,13 @@
android:layout_height="wrap_content"
android:ems="10"
android:inputType="number"
android:hint="Counter"
android:hint="@string/otp_add_counter"
android:autofillHints="" />
<CheckBox
android:id="@+id/input_checksum"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add Checksum" />
android:text="@string/otp_add_checksum" />
</LinearLayout>

View File

@ -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="" />
<EditText
@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:ems="10"
android:inputType="text"
android:hint="Secret"
android:hint="@string/otp_add_secret"
android:autofillHints="" />
<Spinner
@ -43,13 +43,13 @@
android:layout_height="wrap_content"
android:ems="10"
android:inputType="number"
android:hint="Period"
android:hint="@string/otp_add_period"
android:autofillHints="" />
<CheckBox
android:id="@+id/input_checksum"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add Checksum" />
android:text="@string/otp_add_checksum" />
</LinearLayout>

View File

@ -39,6 +39,11 @@
<string name="uri_handler_code_added">Code hinzugefügt</string>
<string name="uri_handler_add_code_title">Code hinzufügen</string>
<string name="theme">Theme</string>
<string name="otp_add_counter">Zähler</string>
<string name="otp_add_checksum">Prüfsumme hinzufügen</string>
<string name="otp_add_secret">Geheimnis</string>
<string name="otp_add_name">Name</string>
<string name="otp_add_period">Intervall</string>
<string-array name="view_edit_delete">
<item>Anzeigen</item>
<item>Bearbeiten</item>

View File

@ -79,6 +79,11 @@
<string name="uri_handler_code_added">Code added</string>
<string name="uri_handler_add_code_title">Add Code</string>
<string name="theme">Theme</string>
<string name="otp_add_counter">Counter</string>
<string name="otp_add_checksum">Add Checksum</string>
<string name="otp_add_secret">Secret</string>
<string name="otp_add_name">Name</string>
<string name="otp_add_period">Period</string>
<string-array name="view_edit_delete">
<item>View</item>
<item>Edit</item>