Use remembered credential even if it is empty (#880)

* Use remembered credential even if it is empty

Should fix #875.

* .isNull() --> == null

* Update relnotes

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

* Reword relnotes

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

* 2019 it is

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Fabian Henneke 2020-06-26 09:12:39 +02:00 committed by GitHub
parent 6b5984dfe6
commit b60c5fb605
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
## [Unreleased] ## [Unreleased]
### Fixed
- Remember passphrase option did not work with keys that had empty passphrases and were generated before 2019
### Added ### Added
- Add GNU IceCatMobile to the list of supported browsers for Autofill - Add GNU IceCatMobile to the list of supported browsers for Autofill

View file

@ -67,7 +67,7 @@ private class GitOperationCredentialFinder(val callingActivity: Activity, val co
val storedCredential = gitOperationPrefs.getString(credentialPref, null) val storedCredential = gitOperationPrefs.getString(credentialPref, null)
if (isRetry) if (isRetry)
gitOperationPrefs.edit { remove(credentialPref) } gitOperationPrefs.edit { remove(credentialPref) }
if (storedCredential.isNullOrEmpty()) { if (storedCredential == null) {
val layoutInflater = LayoutInflater.from(callingActivity) val layoutInflater = LayoutInflater.from(callingActivity)
@SuppressLint("InflateParams") @SuppressLint("InflateParams")