summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/EventInfoActivity.java
diff options
context:
space:
mode:
authorAndrew Flynn <flynn@google.com>2012-03-12 11:38:11 -0700
committerAndrew Flynn <flynn@google.com>2012-03-12 11:58:13 -0700
commitea032a06284975291cfe747c90e57bdf413c3776 (patch)
tree99541cc778d3f0b135fe4f94680f5b5ea6c11b52 /src/com/android/calendar/EventInfoActivity.java
parenta8a16f3dd8a751743822d26519e5fbfcc4d223b7 (diff)
downloadandroid_packages_apps_Calendar-ea032a06284975291cfe747c90e57bdf413c3776.tar.gz
android_packages_apps_Calendar-ea032a06284975291cfe747c90e57bdf413c3776.tar.bz2
android_packages_apps_Calendar-ea032a06284975291cfe747c90e57bdf413c3776.zip
Use double pane agenda view instead of full screen event info
For the case when we open up a full screen event info, instead start the double-pane AllInOneActivity to show double pane events. Change-Id: Ib499692960506c14586e95025304bb44c6e9b173
Diffstat (limited to 'src/com/android/calendar/EventInfoActivity.java')
-rw-r--r--src/com/android/calendar/EventInfoActivity.java24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/com/android/calendar/EventInfoActivity.java b/src/com/android/calendar/EventInfoActivity.java
index a1ad0bf0..4b6827b4 100644
--- a/src/com/android/calendar/EventInfoActivity.java
+++ b/src/com/android/calendar/EventInfoActivity.java
@@ -42,13 +42,6 @@ public class EventInfoActivity extends Activity {
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
- setContentView(R.layout.simple_frame_layout);
-
- // Get the fragment if exists
- mInfoFragment = (EventInfoFragment)
- getFragmentManager().findFragmentById(R.id.main_frame);
-
-
// Get the info needed for the fragment
Intent intent = getIntent();
int attendeeResponse = 0;
@@ -75,6 +68,23 @@ public class EventInfoActivity extends Activity {
}
}
+ // Never show this activity if we support showing double pane agenda view
+ // If we do support this, instead launch AllInOneActivity in double pane mode
+ // This can happen if this activity is launched while in portrait mode in sw600dp
+ if (!getResources().getBoolean(R.bool.agenda_show_event_info_full_screen)) {
+ CalendarController.getInstance(this)
+ .launchViewEvent(mEventId, mStartMillis, mEndMillis);
+ finish();
+ return;
+ }
+
+ setContentView(R.layout.simple_frame_layout);
+
+ // Get the fragment if exists
+ mInfoFragment = (EventInfoFragment)
+ getFragmentManager().findFragmentById(R.id.main_frame);
+
+
// Remove the application title
ActionBar bar = getActionBar();
if (bar != null) {