Skip to content

Commit

Permalink
Fixed crash when opening the app
Browse files Browse the repository at this point in the history
  • Loading branch information
arsvechkarev committed Mar 3, 2024
1 parent 3599c13 commit a647aba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android-app/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ android {
applicationId = "com.arsvechkarev.vault"
minSdk = 26
targetSdk = 34
versionCode = 4
versionName = "1.0.3"
versionCode = 5
versionName = "1.0.4"
signingConfig = if (keystoreProperties.exists()) {
signingConfigs.findByName("release")
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class DefaultKeyFileSaver(
}

override suspend fun getKeyFileIfExists(): ByteArray? = withContext(dispatchersFacade.IO) {
File(context.filesDir, filename).readBytes()
File(context.filesDir, filename).takeIf(File::exists)?.readBytes()
}
}

0 comments on commit a647aba

Please sign in to comment.