aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/git_credential_layout.xml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-05 12:13:35 +0100
committerDanilo M. <danix@danix.xyz>2026-11-05 12:21:40 +0100
commit68714bf78feb5a5a59354da624f2d69d6705e8ab (patch)
tree030eda99da60c4fc8c48b617381e6b1c25171c64 /app/src/main/res/layout/git_credential_layout.xml
parentc85e7c8801caf7a73b46dda9ebf75be023cad9b4 (diff)
downloadHardenedPass-68714bf78feb5a5a59354da624f2d69d6705e8ab.tar.gz
HardenedPass-68714bf78feb5a5a59354da624f2d69d6705e8ab.zip
feat(app): move the git dialogs and the snackbar to Compose
An activity-scoped Prompts ViewModel holds them, since git operations have no composable to draw in; PromptHost draws them. The credential dialog's window is now FLAG_SECURE, and a recreated activity no longer loses it and strands the SSH thread. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'app/src/main/res/layout/git_credential_layout.xml')
-rw-r--r--app/src/main/res/layout/git_credential_layout.xml37
1 files changed, 0 insertions, 37 deletions
diff --git a/app/src/main/res/layout/git_credential_layout.xml b/app/src/main/res/layout/git_credential_layout.xml
deleted file mode 100644
index 8fc527e9..00000000
--- a/app/src/main/res/layout/git_credential_layout.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved.
- ~ SPDX-License-Identifier: GPL-3.0-only
- -->
-
-<LinearLayout 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"
- android:orientation="vertical"
- android:padding="16dp">
-
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/git_auth_passphrase_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:endIconMode="password_toggle"
- app:errorEnabled="true"
- app:hintEnabled="true">
-
- <com.google.android.material.textfield.TextInputEditText
- android:id="@+id/git_auth_credential"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/ssh_keygen_passphrase"
- android:inputType="textPassword" />
-
- <requestFocus />
- </com.google.android.material.textfield.TextInputLayout>
-
- <com.google.android.material.checkbox.MaterialCheckBox
- android:id="@+id/git_auth_remember_credential"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/git_operation_remember_passphrase"
- app:checkedState="checked" />
-</LinearLayout>