From dab11edc9b526198016af247341aee8758f001b2 Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Sun, 28 Jun 2026 22:35:56 +0800 Subject: [PATCH] fix bugs --- android/app/src/main/java/com/rnpay/CallActionReceiver.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/java/com/rnpay/CallActionReceiver.java b/android/app/src/main/java/com/rnpay/CallActionReceiver.java index 8186774..7b734c5 100644 --- a/android/app/src/main/java/com/rnpay/CallActionReceiver.java +++ b/android/app/src/main/java/com/rnpay/CallActionReceiver.java @@ -17,9 +17,10 @@ public class CallActionReceiver extends BroadcastReceiver { String action = intent.getAction(); IncomingCallNotificationHelper.cancel(ctx); - if (ACTION_DECLINE.equals(action)) { + if (ACTION_ACCEPT.equals(action)) { + IncomingCallNotificationHelper.deliverCallResult(ctx, "accept"); + } else if (ACTION_DECLINE.equals(action)) { IncomingCallNotificationHelper.deliverCallResult(ctx, "decline"); } - // ACTION_ACCEPT 由 Activity PendingIntent 直接处理(auto_accept=true),不走这里 } }