OSDN Git Service

Fixed a bunch of problems when moving among agenda/day/week/month views.
[android-x86/packages-apps-Calendar.git] / src / com / android / calendar / MonthActivity.java
index 9bb8667..b06aa98 100644 (file)
@@ -258,6 +258,16 @@ public class MonthActivity extends Activity implements ViewSwitcher.ViewFactory,
     }
 
     @Override
+    protected void onNewIntent(Intent intent) {
+        long timeMillis = Utils.timeFromIntentInMillis(intent);
+        if (timeMillis > 0) {
+            Time time = new Time();
+            time.set(timeMillis);
+            goTo(time);
+        }
+    }
+
+    @Override
     protected void onPause() {
         super.onPause();
         if (isFinishing()) {