aboutsummaryrefslogtreecommitdiffstats
path: root/app/src
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-04 17:48:48 +0100
committerDanilo M. <danix@danix.xyz>2026-11-04 17:48:48 +0100
commitb3f409b60f8af9f96dccca37a88bb02e67351c37 (patch)
tree4ba3409d4537f816ca607caf9ffacbc5102bc0d6 /app/src
parent4e771dd5e04bf40abfd3db16801865a5d1f953a2 (diff)
downloadHardenedPass-b3f409b60f8af9f96dccca37a88bb02e67351c37.tar.gz
HardenedPass-b3f409b60f8af9f96dccca37a88bb02e67351c37.zip
refactor(app): lay out the git credential prompt without ConstraintLayout
The prompt was ConstraintLayout's last user: a vertical LinearLayout holds the same field and checkbox, so the dependency goes. Ids, input type and the remember box's default are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/res/layout/git_credential_layout.xml15
1 files changed, 5 insertions, 10 deletions
diff --git a/app/src/main/res/layout/git_credential_layout.xml b/app/src/main/res/layout/git_credential_layout.xml
index 240c2d7a..8fc527e9 100644
--- a/app/src/main/res/layout/git_credential_layout.xml
+++ b/app/src/main/res/layout/git_credential_layout.xml
@@ -3,10 +3,11 @@
~ SPDX-License-Identifier: GPL-3.0-only
-->
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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
@@ -15,10 +16,7 @@
android:layout_height="wrap_content"
app:endIconMode="password_toggle"
app:errorEnabled="true"
- app:hintEnabled="true"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
+ app:hintEnabled="true">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/git_auth_credential"
@@ -35,8 +33,5 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/git_operation_remember_passphrase"
- app:checkedState="checked"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/git_auth_passphrase_layout" />
-</androidx.constraintlayout.widget.ConstraintLayout>
+ app:checkedState="checked" />
+</LinearLayout>