b/5279070 Launch to current time when widget header tapped

Change-Id: If0b4a8d411bc9ef935fbbcc7715e8f432d79acb6
diff --git a/src/com/android/calendar/AllInOneActivity.java b/src/com/android/calendar/AllInOneActivity.java
index bec5719..1119626 100644
--- a/src/com/android/calendar/AllInOneActivity.java
+++ b/src/com/android/calendar/AllInOneActivity.java
@@ -246,7 +246,16 @@
     protected void onNewIntent(Intent intent) {
         String action = intent.getAction();
         if (Intent.ACTION_VIEW.equals(action)) {
-            parseViewAction(intent);
+            long millis = parseViewAction(intent);
+            if (millis == -1) {
+                millis = Utils.timeFromIntentInMillis(intent);
+            }
+            if (millis != -1 && mViewEventId == -1 && mController != null) {
+                Time time = new Time(mTimeZone);
+                time.set(millis);
+                time.normalize(true);
+                mController.sendEvent(this, EventType.GO_TO, time, time, -1, ViewType.CURRENT);
+            }
         }
     }