summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/config
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-09 02:51:08 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-09 02:51:08 -0500
commitf0f9192aedaa4bef9ceb42dfb7b11cc1c9baf39a (patch)
tree7166f391b9a2fac15cd913082a96ab542f332fe6 /app/src/main/java/com/wireguard/config
parentc3afe5be2c0677aa28cd2c9a49b001a5570f321a (diff)
KeyEncoding: Clean up and reorganize to match style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/config')
-rw-r--r--app/src/main/java/com/wireguard/config/Interface.java2
1 files changed, 1 insertions, 1 deletions
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);