Skip to content

Commit

Permalink
fix: use forward when not double click in RepeaterPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 13, 2023
1 parent c9723d4 commit fdb0555
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/cc/hicore/hook/RepeaterPlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,18 @@ protected void afterHookedMethod(MethodHookParam param) {
if (img.getContext().getClass().getName().contains("MultiForwardActivity")) {
return;
}
if (RepeaterPlusIconSettingDialog.getIsDoubleClick()) {
img.setOnClickListener(v -> {
img.setOnClickListener(v -> {
if (RepeaterPlusIconSettingDialog.getIsDoubleClick()) {
try {
if (System.currentTimeMillis() - 200 > click_time) {
return;
}
} finally {
click_time = System.currentTimeMillis();
}
repeatByForwardNt(param.args[1]);
});
}
}
repeatByForwardNt(param.args[1]);
});
imageView.setVisibility(0);
}
}
Expand Down

0 comments on commit fdb0555

Please sign in to comment.