diff --git a/app/src/main/java/com/cg/lrceditor/LyricListAdapter.java b/app/src/main/java/com/cg/lrceditor/LyricListAdapter.java index a468c38..d9be8f2 100644 --- a/app/src/main/java/com/cg/lrceditor/LyricListAdapter.java +++ b/app/src/main/java/com/cg/lrceditor/LyricListAdapter.java @@ -182,23 +182,14 @@ class LyricListItem extends RecyclerView.ViewHolder implements View.OnLongClickL itemAdd.setImageDrawable(ctx.getDrawable(R.drawable.ic_add_light)); } - itemAdd.setOnClickListener(v -> { - clickListener.onAddButtonClick(getAdapterPosition()); - v.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP); - }); + itemAdd.setOnClickListener(v -> clickListener.onAddButtonClick(getAdapterPosition())); - itemPlay.setOnClickListener(v -> { - clickListener.onPlayButtonClick(getAdapterPosition()); - v.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP); - }); + itemPlay.setOnClickListener(v -> clickListener.onPlayButtonClick(getAdapterPosition())); ImageButton incrTime = itemView.findViewById(R.id.increase_time_button); ImageButton decrTime = itemView.findViewById(R.id.decrease_time_button); - incrTime.setOnClickListener(v -> { - clickListener.onIncreaseTimeClick(getAdapterPosition()); - v.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP); - }); + incrTime.setOnClickListener(v -> clickListener.onIncreaseTimeClick(getAdapterPosition())); incrTime.setOnLongClickListener(v -> { clickListener.onLongPressIncrTime(getAdapterPosition()); @@ -206,10 +197,7 @@ class LyricListItem extends RecyclerView.ViewHolder implements View.OnLongClickL return false; }); - decrTime.setOnClickListener(v -> { - clickListener.onDecreaseTimeClick(getAdapterPosition()); - v.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP); - }); + decrTime.setOnClickListener(v -> clickListener.onDecreaseTimeClick(getAdapterPosition())); decrTime.setOnLongClickListener(v -> { clickListener.onLongPressDecrTime(getAdapterPosition());