From d1fa1895f1b3d8780d0f4c398c70862bee8ef662 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Sat, 29 May 2010 20:38:45 +0000 Subject: [PATCH] fixed a method name --- src/org/thialfihar/android/apg/Apg.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/thialfihar/android/apg/Apg.java b/src/org/thialfihar/android/apg/Apg.java index c5cea15dd..8bb50f0f2 100644 --- a/src/org/thialfihar/android/apg/Apg.java +++ b/src/org/thialfihar/android/apg/Apg.java @@ -305,7 +305,7 @@ public class Apg { return secretKey; } - private static long getNumDatesBetween(GregorianCalendar first, GregorianCalendar second) { + private static long getNumDaysBetween(GregorianCalendar first, GregorianCalendar second) { GregorianCalendar tmp = new GregorianCalendar(); tmp.setTime(first.getTime()); long numDays = (second.getTimeInMillis() - first.getTimeInMillis()) / 1000 / 86400; @@ -442,7 +442,7 @@ public class Apg { GregorianCalendar creationDate = new GregorianCalendar(); creationDate.setTime(getCreationDate(masterKey)); GregorianCalendar expiryDate = keyEditor.getExpiryDate(); - long numDays = getNumDatesBetween(creationDate, expiryDate); + long numDays = getNumDaysBetween(creationDate, expiryDate); if (numDays <= 0) { throw new GeneralException(context.getString(R.string.error_expiryMustComeAfterCreation)); } @@ -494,7 +494,7 @@ public class Apg { GregorianCalendar creationDate = new GregorianCalendar(); creationDate.setTime(getCreationDate(masterKey)); GregorianCalendar expiryDate = keyEditor.getExpiryDate(); - long numDays = getNumDatesBetween(creationDate, expiryDate); + long numDays = getNumDaysBetween(creationDate, expiryDate); if (numDays <= 0) { throw new GeneralException(context.getString(R.string.error_expiryMustComeAfterCreation)); }