Skip to content

Commit

Permalink
Made KeysStorageImpl.getPgpKeyDetailsList() synchronized to prevent c…
Browse files Browse the repository at this point in the history
…rashes.| #1255
  • Loading branch information
DenBond7 committed Jun 10, 2021
1 parent 43705b3 commit 34ff921
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class KeysStorageImpl private constructor(context: Context) : KeysStorage {
return secretKeyRingsLiveData.value ?: emptyList()
}

@Synchronized
override fun getPgpKeyDetailsList(): List<PgpKeyDetails> {
val list = mutableListOf<PgpKeyDetails>()
for (secretKey in getPGPSecretKeyRings()) {
Expand Down

0 comments on commit 34ff921

Please sign in to comment.