File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/main/java/com/alamkanak/weekview Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ public boolean onSingleTapUp(@NonNull MotionEvent e) {
213
213
if (eventRect .rectF != null && eventRect .rectF .contains (e .getX (), e .getY ())) {
214
214
if (mNewEventIdentifier .equals (eventRect .event .getIdentifier ())) {
215
215
mAddEventClickListener .onAddEventClicked (mNewEventRect .event .getStartTime (), mNewEventRect .event .getEndTime ());
216
+ playSoundEffect (SoundEffectConstants .CLICK );
216
217
// Do this later, as we are iterating over this list currently
217
218
doRemoveNewEvent = true ;
218
219
creatingNewEvent = false ;
@@ -231,6 +232,7 @@ public boolean onSingleTapUp(@NonNull MotionEvent e) {
231
232
// If the tap was on an empty space, then trigger the callback.
232
233
if (wasEmptyClick && (mEmptyViewClickListener != null || mAddEventClickListener != null ) && e .getX () > mHeaderColumnWidth && e .getY () > (mHeaderHeight + mHeaderRowPadding * 2 + mHeaderMarginBottom )) {
233
234
mNewEventDragOffset = 0 ;
235
+ playSoundEffect (SoundEffectConstants .CLICK );
234
236
startNewEventAdding (e );
235
237
}
236
238
@@ -2864,8 +2866,6 @@ private void removeNewEvent() {
2864
2866
}
2865
2867
2866
2868
private void startNewEventAdding (MotionEvent e ) {
2867
- playSoundEffect (SoundEffectConstants .CLICK );
2868
-
2869
2869
Calendar selectedTime = getTimeFromPoint (e .getX (), e .getY ());
2870
2870
if (mEmptyViewClickListener != null && selectedTime != null )
2871
2871
mEmptyViewClickListener .onEmptyViewClicked ((Calendar ) selectedTime .clone ());
You can’t perform that action at this time.
0 commit comments