fix unit tests for ChangeUnlockParcel

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

View File

@@ -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!");