From c0844a5cee20e12203f0ad3cf1c555da6d521eb4 Mon Sep 17 00:00:00 2001 From: Super12138 <70494801+Super12138@users.noreply.github.com> Date: Sun, 14 Jul 2024 07:23:57 +0800 Subject: [PATCH] Revert changes --- .../com/cg/lrceditor/LyricListAdapter.java | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) 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());