summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Flynn <flynn@google.com>2012-03-12 12:50:27 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-03-12 12:50:27 -0700
commit37036fa10b6f060500ef437e3a2b679c6c7cd2a0 (patch)
tree178ba44ffcbaa33fbf3900a86e071de30599e415
parent80401e59f82f63ae827d1789aec47b20bba0e1e1 (diff)
parent3b9f6f78ef3b0e86c3b75c4ecd2eb9c7372acb61 (diff)
downloadandroid_packages_apps_Calendar-37036fa10b6f060500ef437e3a2b679c6c7cd2a0.tar.gz
android_packages_apps_Calendar-37036fa10b6f060500ef437e3a2b679c6c7cd2a0.tar.bz2
android_packages_apps_Calendar-37036fa10b6f060500ef437e3a2b679c6c7cd2a0.zip
am 3b9f6f78: Merge "Use double pane agenda view instead of full screen event info" into ics-scoop
* commit '3b9f6f78ef3b0e86c3b75c4ecd2eb9c7372acb61': Use double pane agenda view instead of full screen event info
-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) {