Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Jul 13, 2024
1 parent c706c11 commit c0844a5
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions app/src/main/java/com/cg/lrceditor/LyricListAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,34 +182,22 @@ 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());
v.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
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());
Expand Down

0 comments on commit c0844a5

Please sign in to comment.