fix bugs
This commit is contained in:
@@ -17,9 +17,10 @@ public class CallActionReceiver extends BroadcastReceiver {
|
|||||||
String action = intent.getAction();
|
String action = intent.getAction();
|
||||||
IncomingCallNotificationHelper.cancel(ctx);
|
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");
|
IncomingCallNotificationHelper.deliverCallResult(ctx, "decline");
|
||||||
}
|
}
|
||||||
// ACTION_ACCEPT 由 Activity PendingIntent 直接处理(auto_accept=true),不走这里
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user