summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/Utils.java
diff options
context:
space:
mode:
authorMichael Chan <mchan@android.com>2009-08-14 20:50:21 -0700
committerMichael Chan <mchan@android.com>2009-08-14 20:50:21 -0700
commitb1cd1850c8234e7c17ecbbb9c73e1ce804a75789 (patch)
tree7a1ac88b4b8682d7825cacafc0c18df1dd0de99e /src/com/android/calendar/Utils.java
parentb84f65915b302098df2377ef2278c477ac550686 (diff)
downloadandroid_packages_apps_Calendar-b1cd1850c8234e7c17ecbbb9c73e1ce804a75789.tar.gz
android_packages_apps_Calendar-b1cd1850c8234e7c17ecbbb9c73e1ce804a75789.tar.bz2
android_packages_apps_Calendar-b1cd1850c8234e7c17ecbbb9c73e1ce804a75789.zip
b/1438315 Fixed back behavior for Calendar.
When traversing among the Agenda, Day, Week, and Month views, only one instance of each view will be saved in the activity stack. For example, if one were to go to Agenda, Day, Week, Day, then Agenda, pressing the back multiple times from Agenda view will yield the following: Day, Week, then Home.
Diffstat (limited to 'src/com/android/calendar/Utils.java')
-rw-r--r--src/com/android/calendar/Utils.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/calendar/Utils.java b/src/com/android/calendar/Utils.java
index 53c584cb..e301eb1b 100644
--- a/src/com/android/calendar/Utils.java
+++ b/src/com/android/calendar/Utils.java
@@ -30,6 +30,7 @@ public class Utils {
intent.setClassName(context, className);
intent.putExtra(EVENT_BEGIN_TIME, time);
+ intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
context.startActivity(intent);
}