From f0f9192aedaa4bef9ceb42dfb7b11cc1c9baf39a Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Wed, 9 Aug 2017 02:51:08 -0500 Subject: KeyEncoding: Clean up and reorganize to match style Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/config/Interface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/com/wireguard/config/Interface.java') diff --git a/app/src/main/java/com/wireguard/config/Interface.java b/app/src/main/java/com/wireguard/config/Interface.java index 9f74bab0..d583f37b 100644 --- a/app/src/main/java/com/wireguard/config/Interface.java +++ b/app/src/main/java/com/wireguard/config/Interface.java @@ -91,7 +91,7 @@ public class Interface extends BaseObservable implements Observable { public void setPrivateKey(String privateKey) { // Avoid exceptions from Keypair while the user is typing. - if (privateKey.length() != KeyEncoding.WG_KEY_LEN_BASE64) + if (privateKey.length() != KeyEncoding.KEY_LENGTH_BASE64) return; keypair = new Keypair(privateKey); notifyPropertyChanged(BR.privateKey); -- cgit v1.2.3