aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-12-10 22:47:18 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-12-21 20:31:28 +0530
commit96b51e73ec48b95909ed039e8faefadc72c9eeff (patch)
treed082cd52d2f5272cbcf1a7c39e766d4822ad9ebe /app/src/main/res
parent31ec316b8b5a77781b32ebde79a09045fb3f300e (diff)
Better guidance for users to deal with host key changes (#1242)
* Provide actionable guidance for host key mismatches Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update changelog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Hide host key clear button after use Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> (cherry picked from commit ce2e657108187a34416cfbfc0c5d2fc8bb9277f3) Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_git_clone.xml11
-rw-r--r--app/src/main/res/values/strings.xml2
2 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_git_clone.xml b/app/src/main/res/layout/activity_git_clone.xml
index ad0a186b..7ee64e51 100644
--- a/app/src/main/res/layout/activity_git_clone.xml
+++ b/app/src/main/res/layout/activity_git_clone.xml
@@ -120,5 +120,16 @@
android:text="@string/crypto_save"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/auth_mode_group" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/clear_host_key_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:text="@string/clear_saved_host_key"
+ android:visibility="gone"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/auth_mode_group"
+ tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 6bfc1977..885753e9 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -415,5 +415,7 @@
<string name="pref_proxy_settings">HTTP(S) proxy settings</string>
<string name="invalid_proxy_url">Invalid URL</string>
<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>
</resources>