From 2de4383535fc641bbe3d602120aa0a7f3b057cfc Mon Sep 17 00:00:00 2001 From: Tebbe Ubben Date: Wed, 1 May 2019 16:33:49 +0200 Subject: [PATCH] Improve code style --- .../plugins/general/signatureVerifier/SignatureVerifier.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/signatureVerifier/SignatureVerifier.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/signatureVerifier/SignatureVerifier.java index 377e5e9953..0673e2c717 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/signatureVerifier/SignatureVerifier.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/signatureVerifier/SignatureVerifier.java @@ -22,6 +22,7 @@ import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.concurrent.TimeUnit; import info.nightscout.androidaps.MainApp; import info.nightscout.androidaps.R; @@ -43,7 +44,7 @@ import info.nightscout.androidaps.utils.SP; public class SignatureVerifier extends PluginBase implements ConstraintsInterface { private static final String REVOKED_CERTS_URL = "https://raw.githubusercontent.com/MilosKozak/AndroidAPS/master/app/src/main/assets/revoked_certs.txt"; - private static final long UPDATE_INTERVAL = 24 * 60 * 60 * 1000; + private static final long UPDATE_INTERVAL = TimeUnit.DAYS.toMillis(1); private static SignatureVerifier plugin = new SignatureVerifier();