diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-03 23:49:47 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-04 00:19:31 +0530 |
commit | 90b9ed88eb52c6ea03c4dbca944a658921db16f5 (patch) | |
tree | b169501336870d3637a0d03467402838793cd85b /app/src/main | |
parent | a3b88c1dee8602bdfe491d172e136b5747e5a137 (diff) |
fix: make remembering HTTPS password the default
Not many good reasons to do this a different way
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/app/passwordstore/util/git/operation/CredentialFinder.kt | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/git_credential_layout.xml | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/app/passwordstore/util/git/operation/CredentialFinder.kt b/app/src/main/java/app/passwordstore/util/git/operation/CredentialFinder.kt index 16364f0c..0210a744 100644 --- a/app/src/main/java/app/passwordstore/util/git/operation/CredentialFinder.kt +++ b/app/src/main/java/app/passwordstore/util/git/operation/CredentialFinder.kt @@ -29,8 +29,10 @@ import dagger.hilt.components.SingletonComponent import kotlin.coroutines.Continuation import kotlin.coroutines.resume -class CredentialFinder(val callingActivity: FragmentActivity, val authMode: AuthMode) : - InteractivePasswordFinder() { +class CredentialFinder( + private val callingActivity: FragmentActivity, + private val authMode: AuthMode, +) : InteractivePasswordFinder() { private val hiltEntryPoint = EntryPointAccessors.fromApplication( diff --git a/app/src/main/res/layout/git_credential_layout.xml b/app/src/main/res/layout/git_credential_layout.xml index 7935f2de..251947be 100644 --- a/app/src/main/res/layout/git_credential_layout.xml +++ b/app/src/main/res/layout/git_credential_layout.xml @@ -35,6 +35,7 @@ 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" /> |