Commit shared preferences, clear instead of deleting.

This commit is contained in:
akwizgran
2018-05-11 09:54:49 +01:00
parent df7d48d54d
commit b77b885a94
4 changed files with 27 additions and 11 deletions

View File

@@ -54,7 +54,8 @@ public class PasswordControllerImplTest extends BrambleMockTestCase {
oneOf(briarPrefs).edit();
will(returnValue(editor));
oneOf(editor).putString("key", newEncryptedHex);
oneOf(editor).apply();
will(returnValue(editor));
oneOf(editor).commit();
}});
PasswordControllerImpl p = new PasswordControllerImpl(briarPrefs,

View File

@@ -81,7 +81,8 @@ public class SetupControllerImplTest extends BrambleMockTestCase {
oneOf(briarPrefs).edit();
will(returnValue(editor));
oneOf(editor).putString("key", encryptedHex);
oneOf(editor).apply();
will(returnValue(editor));
oneOf(editor).commit();
}});
SetupControllerImpl s = new SetupControllerImpl(briarPrefs,