diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-04 17:48:48 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-04 17:48:48 +0100 |
| commit | b3f409b60f8af9f96dccca37a88bb02e67351c37 (patch) | |
| tree | 4ba3409d4537f816ca607caf9ffacbc5102bc0d6 | |
| parent | 4e771dd5e04bf40abfd3db16801865a5d1f953a2 (diff) | |
| download | HardenedPass-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>
| -rw-r--r-- | app/build.gradle.kts | 1 | ||||
| -rw-r--r-- | app/src/main/res/layout/git_credential_layout.xml | 15 | ||||
| -rw-r--r-- | gradle/libs.versions.toml | 1 |
3 files changed, 5 insertions, 12 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 053d7478..cad899f9 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -60,7 +60,6 @@ dependencies { implementation(libs.androidx.appcompat) implementation(libs.androidx.autofill) implementation(libs.androidx.biometricKtx) - implementation(libs.androidx.constraintlayout) implementation(libs.androidx.core.ktx) implementation(libs.androidx.documentfile) // Pins androidx.fragment (FragmentActivity, BiometricPrompt): appcompat alone resolves 1.5.4. 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> diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1e3d50ea..c0a37319 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,7 +17,6 @@ androidx-annotation = "androidx.annotation:annotation:1.8.2" androidx-appcompat = "androidx.appcompat:appcompat:1.7.0" androidx-autofill = "androidx.autofill:autofill:1.3.0" androidx-biometricKtx = "androidx.biometric:biometric-ktx:1.2.0-alpha05" -androidx-constraintlayout = "androidx.constraintlayout:constraintlayout:2.2.2" androidx-core-ktx = "androidx.core:core-ktx:1.13.1" androidx-documentfile = "androidx.documentfile:documentfile:1.1.0" androidx-fragment-ktx = "androidx.fragment:fragment-ktx:1.8.4" |
