OSDN Git Service

Quick fix to add safer time checking for time from intents.
[android-x86/packages-apps-Calendar.git] / src / com / android / calendar / Utils.java
index 7294714..aa48fe0 100644 (file)
@@ -95,7 +95,7 @@ public class Utils {
                 }
             }
         }
-        if (millis == -1) {
+        if (millis <= 0) {
             millis = System.currentTimeMillis();
         }
         return millis;