@@ -318,7 +318,7 @@ public boolean onSingleTapConfirmed(MotionEvent e) {
318
318
float y = e .getY () - mCurrentOrigin .y ;
319
319
// If the tap was on add new Event space, then trigger the callback
320
320
if (mAddEventClickListener != null && mNewEventRect != null && mNewEventRect .rectF != null &&
321
- mNewEventRect .rectF .contains (x ,y )){
321
+ mNewEventRect .rectF .contains (x , y )) {
322
322
mAddEventClickListener .onAddEventClicked (mNewEventRect .event .getStartTime (), mNewEventRect .event .getEndTime ());
323
323
return super .onSingleTapConfirmed (e );
324
324
}
@@ -377,7 +377,7 @@ top < getHeight() &&
377
377
right > mHeaderColumnWidth &&
378
378
bottom > 0
379
379
) {
380
- RectF dayRectF = new RectF (left , top , right , bottom - mCurrentOrigin .y );
380
+ RectF dayRectF = new RectF (left , top , right , bottom - mCurrentOrigin .y );
381
381
newEvent .setColor (mNewEventColor );
382
382
mNewEventRect = new EventRect (newEvent , newEvent , dayRectF );
383
383
tempEvents .add (newEvent );
@@ -1041,21 +1041,21 @@ private void limitEventTime(List<Calendar> dates) {
1041
1041
}
1042
1042
}
1043
1043
1044
- private int getMinHourOffset (){
1044
+ private int getMinHourOffset () {
1045
1045
return mHourHeight * mMinTime ;
1046
1046
}
1047
1047
1048
- private float getEventsTop (){
1048
+ private float getEventsTop () {
1049
1049
// Calculate top.
1050
1050
return mCurrentOrigin .y + mHeaderHeight + mHeaderRowPadding * 2 + mHeaderMarginBottom + mTimeTextHeight / 2 + mEventMarginVertical - getMinHourOffset ();
1051
1051
1052
1052
}
1053
1053
1054
- private int getLeftDaysWithGaps (){
1054
+ private int getLeftDaysWithGaps () {
1055
1055
return (int ) -(Math .ceil (mCurrentOrigin .x / (mWidthPerDay + mColumnGap )));
1056
1056
}
1057
1057
1058
- private float getXStartPixel (){
1058
+ private float getXStartPixel () {
1059
1059
return mCurrentOrigin .x + (mWidthPerDay + mColumnGap ) * getLeftDaysWithGaps () +
1060
1060
mHeaderColumnWidth ;
1061
1061
}
0 commit comments