OSDN Git Service

Quick fix to add safer time checking for time from intents.
authorErik <roboerik@android.com>
Fri, 26 Feb 2010 23:29:37 +0000 (15:29 -0800)
committerErik <roboerik@android.com>
Fri, 26 Feb 2010 23:29:37 +0000 (15:29 -0800)
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;