fix unit tests for ChangeUnlockParcel

This commit is contained in:
Vincent Breitmoser committed 2014-12-30 12:02:37 +01:00
1 parent 2a5ac4e67c
commit 7524881a01
6 files changed
+24 -16

No files matched your search

@@ -254,6 +254,9 @@ public class SaveKeyringParcel implements Parcelable {
// A new pin to use. Must only contain [0-9]+
public final String mNewPin;
public ChangeUnlockParcel(String newPassphrase) {
this(newPassphrase, null);
}
public ChangeUnlockParcel(String newPassphrase, String newPin) {
if (newPassphrase == null && newPin == null) {
throw new RuntimeException("Cannot set both passphrase and pin. THIS IS A BUG!");