Skip to content

Commit 2633feb

Browse files
author
aashishksahu
authored
Merge pull request #42 from aashishksahu/38-bug-pin-number-starting-with-0-is-not-supported
38 bug pin number starting with 0 is not supported
2 parents 281ff16 + bbef81b commit 2633feb

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ android {
1616

1717
minSdk 29
1818
targetSdk 34
19-
versionCode 18
20-
versionName "1.4.4"
19+
versionCode 19
20+
versionName "1.4.5"
2121

2222
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2323
}

app/release/app-release.apk

0 Bytes
Binary file not shown.

app/release/output-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"type": "SINGLE",
1212
"filters": [],
1313
"attributes": [],
14-
"versionCode": 18,
15-
"versionName": "1.4.4",
14+
"versionCode": 19,
15+
"versionName": "1.4.5",
1616
"outputFile": "app-release.apk"
1717
}
1818
],

app/src/main/java/org/privacymatters/safespace/lib/utils/EncPref.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ class EncPref {
2121
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
2222
)
2323
}
24+
25+
// migrate to new pin
26+
val oldPin = encPref!!.getInt(Constants.HARD_PIN, -1)
27+
28+
if (oldPin != -1) {
29+
encPref!!.edit().putString(Constants.HARD_PIN, oldPin.toString()).apply()
30+
}
31+
32+
2433
}
2534

2635
fun getBoolean(pref: String, applicationContext: Context): Boolean {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
* Fixed file sorting where file names were numerical
2-
* Fixed PIN issues where PIN starts with 0
2+
* Fixed PIN issues where PIN starts with 0

0 commit comments

Comments
 (0)