Skip to content

Commit d084e32

Browse files
committed
fix: remove nice easter egg
1 parent 1c7458b commit d084e32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/alamkanak/weekview/WeekView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ public boolean onSingleTapUp(@NonNull MotionEvent e) {
213213
if (eventRect.rectF != null && eventRect.rectF.contains(e.getX(), e.getY())) {
214214
if (mNewEventIdentifier.equals(eventRect.event.getIdentifier())) {
215215
mAddEventClickListener.onAddEventClicked(mNewEventRect.event.getStartTime(), mNewEventRect.event.getEndTime());
216+
playSoundEffect(SoundEffectConstants.CLICK);
216217
// Do this later, as we are iterating over this list currently
217218
doRemoveNewEvent = true;
218219
creatingNewEvent = false;
@@ -231,6 +232,7 @@ public boolean onSingleTapUp(@NonNull MotionEvent e) {
231232
// If the tap was on an empty space, then trigger the callback.
232233
if (wasEmptyClick && (mEmptyViewClickListener != null || mAddEventClickListener != null) && e.getX() > mHeaderColumnWidth && e.getY() > (mHeaderHeight + mHeaderRowPadding * 2 + mHeaderMarginBottom)) {
233234
mNewEventDragOffset = 0;
235+
playSoundEffect(SoundEffectConstants.CLICK);
234236
startNewEventAdding(e);
235237
}
236238

@@ -2864,8 +2866,6 @@ private void removeNewEvent() {
28642866
}
28652867

28662868
private void startNewEventAdding(MotionEvent e) {
2867-
playSoundEffect(SoundEffectConstants.CLICK);
2868-
28692869
Calendar selectedTime = getTimeFromPoint(e.getX(), e.getY());
28702870
if (mEmptyViewClickListener != null && selectedTime != null)
28712871
mEmptyViewClickListener.onEmptyViewClicked((Calendar) selectedTime.clone());

0 commit comments

Comments
 (0)