summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/EventInfoActivity.java
diff options
context:
space:
mode:
authorIsaac Katzenelson <isaack@android.com>2012-04-26 17:39:14 -0700
committerIsaac Katzenelson <isaack@android.com>2012-05-02 17:32:21 -0700
commit0ef732f240516f9f8b8add982f82244e01ec509b (patch)
treeb7e3adea3919b17a2a0bc24e7a795c8622776129 /src/com/android/calendar/EventInfoActivity.java
parent5847482420ed321640f305c5fbc619fa87edf35f (diff)
downloadandroid_packages_apps_Calendar-0ef732f240516f9f8b8add982f82244e01ec509b.tar.gz
android_packages_apps_Calendar-0ef732f240516f9f8b8add982f82244e01ec509b.tar.bz2
android_packages_apps_Calendar-0ef732f240516f9f8b8add982f82244e01ec509b.zip
Fix back and home behavior
Change-Id: I9b6085a73043d8d05d99cbfcbc20a8be4f58180d
Diffstat (limited to 'src/com/android/calendar/EventInfoActivity.java')
-rw-r--r--src/com/android/calendar/EventInfoActivity.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/android/calendar/EventInfoActivity.java b/src/com/android/calendar/EventInfoActivity.java
index 4b6827b4..0ea6b369 100644
--- a/src/com/android/calendar/EventInfoActivity.java
+++ b/src/com/android/calendar/EventInfoActivity.java
@@ -24,9 +24,12 @@ import android.app.ActionBar;
import android.app.Activity;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
+import android.content.ContentUris;
import android.content.Intent;
+import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
+import android.provider.CalendarContract.Events;
import android.util.Log;
public class EventInfoActivity extends Activity {
@@ -68,10 +71,11 @@ 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)) {
+ // If we do not support showing full screen event info in this configuration,
+ // close the activity and show the event in AllInOne.
+ Resources res = getResources();
+ if (!res.getBoolean(R.bool.agenda_show_event_info_full_screen)
+ && !res.getBoolean(R.bool.show_event_info_full_screen)) {
CalendarController.getInstance(this)
.launchViewEvent(mEventId, mStartMillis, mEndMillis);
finish();