Skip to content

Commit

Permalink
fix bug in confirmation send sticker
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod committed Jul 3, 2024
1 parent bdf1aa0 commit 715664e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
View.OnClickListener mCaptureOnClickListener = (View.OnClickListener) param.args[0];
if (mCaptureOnClickListener == null) return;
if (!(param.thisObject instanceof ViewGroup)) return;
param.args[0] = (View.OnClickListener) view -> {
var view = (View) param.thisObject;
if (view.findViewById(Utils.getID("sticker", "id")) == null) return;

param.args[0] = (View.OnClickListener) v -> {
var context = view.getContext();
var dialog = new AlertDialogWpp(view.getContext());
dialog.setTitle(context.getString(ResId.string.send_sticker));
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
[SEEN TICK]
* Added button to read all of that person's statuses

[CONFIRMATION STICKER]
* Fix bug in confirmation send sticker

[WHATSAPP]
* Added support for versions 2.24.13.77 and 78

0 comments on commit 715664e

Please sign in to comment.