aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-02-18 12:17:03 +0530
committerGitHub <noreply@github.com>2021-02-18 12:17:03 +0530
commit92ece7dbb5607258bcf954963009bf1f9411ab07 (patch)
tree3d9f3208e9d7f4ebbd996b1f4b99bec86713d51e /app/src/main/res
parent051d455c9f68d7edbc75abbc8d9293dd34d1d250 (diff)
Implement manual TOTP import and cleanup password generators (#1320)
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_manual_otp_entry.xml46
-rw-r--r--app/src/main/res/values/strings.xml4
2 files changed, 50 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_manual_otp_entry.xml b/app/src/main/res/layout/fragment_manual_otp_entry.xml
new file mode 100644
index 00000000..eef81dd5
--- /dev/null
+++ b/app/src/main/res/layout/fragment_manual_otp_entry.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/secret_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/otp_import_manual_hint_secret"
+ android:paddingStart="16dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="16dp"
+ app:hintEnabled="true"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/secret"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </com.google.android.material.textfield.TextInputLayout>
+
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/account_layout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/otp_import_manual_hint_account"
+ android:paddingStart="16dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="16dp"
+ app:hintEnabled="true"
+ app:layout_constraintTop_toBottomOf="@id/secret_layout">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/account"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </com.google.android.material.textfield.TextInputLayout>
+
+</androidx.constraintlayout.widget.ConstraintLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 230be155..98e1da76 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -398,5 +398,9 @@
<string name="oreo_autofill_password_fill_and_conditional_save_support">Fill and save passwords (saving requires that no accessibility services are enabled)</string>
<string name="clear_saved_host_key">Clear saved host key</string>
<string name="clear_saved_host_key_success">Successfully cleared saved host key!</string>
+ <string name="otp_import_qr_code">Scan QR code</string>
+ <string name="otp_import_manual_entry">Enter manually</string>
+ <string name="otp_import_manual_hint_secret">Secret</string>
+ <string name="otp_import_manual_hint_account">Account</string>
</resources>