summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2011-08-01 13:52:22 -0700
committerRoboErik <epastern@google.com>2011-08-01 13:52:22 -0700
commit4ab51bf9fc2f3e6915705f39688e8244fc74028f (patch)
tree4c874220ca4c03844fb6d50ab21b2249c246bb87 /src/com/android/calendar
parent92a17c10182c5e955a4ecfedaba6597f7f017a70 (diff)
downloadandroid_packages_apps_Calendar-4ab51bf9fc2f3e6915705f39688e8244fc74028f.tar.gz
android_packages_apps_Calendar-4ab51bf9fc2f3e6915705f39688e8244fc74028f.tar.bz2
android_packages_apps_Calendar-4ab51bf9fc2f3e6915705f39688e8244fc74028f.zip
b/5103886 Fix expand allday clicking
Change-Id: I4e897cb7e4f099dd4de960bcb22fef118ad96448
Diffstat (limited to 'src/com/android/calendar')
-rw-r--r--src/com/android/calendar/DayView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/calendar/DayView.java b/src/com/android/calendar/DayView.java
index 73f5d17f..4b2c14d2 100644
--- a/src/com/android/calendar/DayView.java
+++ b/src/com/android/calendar/DayView.java
@@ -3545,7 +3545,7 @@ public class DayView extends View implements View.OnCreateContextMenuListener,
if (mMaxAlldayEvents > mMaxUnexpandedAlldayEventCount) {
// check if the tap was in the allday expansion area
- int bottom = MAX_UNEXPANDED_ALLDAY_HEIGHT + DAY_HEADER_HEIGHT + ALLDAY_TOP_MARGIN;
+ int bottom = mFirstCell;
if((x < mHoursWidth && y > DAY_HEADER_HEIGHT && y < DAY_HEADER_HEIGHT + mAlldayHeight)
|| (!mShowAllAllDayEvents && mAnimateDayHeight == 0 && y < bottom &&
y >= bottom - MIN_UNEXPANDED_ALLDAY_EVENT_HEIGHT)) {