diff options
author | Andrew Flynn <flynn@google.com> | 2012-03-12 13:30:50 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-03-12 13:30:50 -0700 |
commit | 2d6d74e62b4f79909ee10de631c9b3f8ecc2ee95 (patch) | |
tree | a1d8de9f1cecbdb8bb3888038f8b3bdcee8ec04b | |
parent | 019915a1cc017113d37ad378f00141cff68d853a (diff) | |
parent | 37036fa10b6f060500ef437e3a2b679c6c7cd2a0 (diff) | |
download | android_packages_apps_Calendar-2d6d74e62b4f79909ee10de631c9b3f8ecc2ee95.tar.gz android_packages_apps_Calendar-2d6d74e62b4f79909ee10de631c9b3f8ecc2ee95.tar.bz2 android_packages_apps_Calendar-2d6d74e62b4f79909ee10de631c9b3f8ecc2ee95.zip |
am 37036fa1: am 3b9f6f78: Merge "Use double pane agenda view instead of full screen event info" into ics-scoop
* commit '37036fa10b6f060500ef437e3a2b679c6c7cd2a0':
Use double pane agenda view instead of full screen event info
-rw-r--r-- | src/com/android/calendar/EventInfoActivity.java | 24 |
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) { |