We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52a1d2 commit 0be9901Copy full SHA for 0be9901
app/src/main/java/org/thoughtcrime/securesms/crypto/EncryptedPreferences.java
@@ -367,11 +367,10 @@ private Object getDecryptedObject(String key) {
367
}
368
369
Object value = null;
370
- MasterCipher masterCipher = getCipher();
371
synchronized (cache) {
372
String encryptedValue = sharedPreferences.getString(key, null);
373
if (encryptedValue != null) {
374
- byte[] bytes = decrypt(key, encryptedValue, masterCipher);
+ byte[] bytes = decrypt(key, encryptedValue, getCipher());
375
ByteBuffer buffer = ByteBuffer.wrap(bytes);
376
buffer.position(0);
377
int typeId = buffer.getInt();
0 commit comments